-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/highlight/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/highlight/__init__.pyc

ó
Ė\,Tc@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/lib/python2.7/dist-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/lib/python2.7/dist-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/lib/python2.7/dist-packages/hgext/highlight/__init__.pytgenerate_css3s
cCsCtjtdtƒtjtdtƒtt_tjjdƒdS(Nt
_filerevisiontannotatethighlightcss(	RtwrapfunctionRRRR"R%t__all__tappend(((s</usr/lib/python2.7/dist-packages/hgext/highlight/__init__.pytextsetup:s
	(t__doc__Rtmercurial.hgwebRRRt	mercurialRRt
testedwithRRR"R)(((s</usr/lib/python2.7/dist-packages/hgext/highlight/__init__.pyt<module>s			

Copyright © 2017 || Recoded By Mr.Bumblebee