HEX
Server: Apache
System: Linux shared178.accountservergroup.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User: somesolu (2995)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: //lib64/python2.7/site-packages/hgext/highlight/__init__.pyo
�
Hq�Qc@srdZddlZddlmZmZmZddlmZmZdZ	d�Z
d�Zd�Zd	�Z
dS(
s�syntax highlighting for hgweb (requires Pygments)

It depends on the Pygments syntax highlighting library:
http://pygments.org/

There is a single configuration option::

  [web]
  pygments_style = <style>

The default is 'colorful'.
i����N(twebcommandstwebutiltcommon(t
extensionstencodingtinternalcCshdj|ddtj��}d|krX|jddd�}tjd|||�n||||�S(	NttmimetypeRthtmltwebtpygments_styletcolorfultfileline(tjoinRtconfigt	highlightt
pygmentize(torigR	ttmpltfctxtmttstyle((s>/usr/lib64/python2.7/site-packages/hgext/highlight/__init__.pytfilerevision_highlights
cCs}dj|ddtj��}d|krmtj|j|�}|jddd�}tjd|||�n||||�S(	NRRRRR	R
Rtannotateline(R
RRtfilectxtrepoRRR(RR	treqRRRR((s>/usr/lib64/python2.7/site-packages/hgext/highlight/__init__.pytannotate_highlight+scCsQ|jddd�}tjd|�}|jtjd�d||jd�gS(NR	R
RRstext/csss/* pygments_style = %s */

R(RRt
HtmlFormattertrespondRtHTTP_OKtget_style_defs(R	RRtpg_styletfmter((s>/usr/lib64/python2.7/site-packages/hgext/highlight/__init__.pytgenerate_css3s
cCsCtjtdt�tjtdt�tt_tjjd�dS(Nt
_filerevisiontannotatethighlightcss(	RtwrapfunctionRRRR"R%t__all__tappend(((s>/usr/lib64/python2.7/site-packages/hgext/highlight/__init__.pytextsetup:s
	(t__doc__Rtmercurial.hgwebRRRt	mercurialRRt
testedwithRRR"R)(((s>/usr/lib64/python2.7/site-packages/hgext/highlight/__init__.pyt<module>s