Do syntax highlighting.
|
|
__init__(self,
mode,
link=None,
styles={})
Initialise highlighter: mode = language (PYTHON, WEB2PY,C, CPP, HTML,
HTML_PLAIN) |
source code
|
|
|
|
c_tokenizer(self,
token,
match,
style)
Callback for C specific highlighting. |
source code
|
|
|
|
python_tokenizer(self,
token,
match,
style)
Callback for python specific highlighting. |
source code
|
|
|
|
html_tokenizer(self,
token,
match,
style)
Callback for HTML specific highlighting. |
source code
|
|
|
|
|
|
|
change_style(self,
token,
style)
Generate output to change from existing style to another style only. |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|