class openalea.oalab.editor.highlight.GenericHighlighter(parent, lexer=None, filename='a.txt')[source]

Bases: openalea.oalab.editor.highlight.Highlighter

staticMetaObject = <PySide.QtCore.QMetaObject object at 0x2adeeac20ab8>
class openalea.oalab.editor.highlight.Highlighter(parent, lexer=None)[source]

Bases: PySide.QtGui.QSyntaxHighlighter

highlightBlock(string)[source]

Highlight a block of text.

set_style(style)[source]

Sets the style to the specified Pygments style.

set_style_sheet(stylesheet)[source]

Sets a CSS stylesheet. The classes in the stylesheet should correspond to those generated by:

pygmentize -S <style> -f html

Note that 'set_style' and 'set_style_sheet' completely override each other, i.e. they cannot be used in conjunction.

staticMetaObject = <PySide.QtCore.QMetaObject object at 0x2adeeac20758>
class openalea.oalab.editor.highlight.PygmentsBlockUserData(**kwds)[source]

Bases: PySide.QtGui.QTextBlockUserData

Storage for the user data associated with each line.

syntax_stack = ('root',)

Previous topic

<no title>

Next topic

<no title>

This Page