cola.views.syntax – Syntax highlighting

This module provides SyntaxHighlighter classes. These classes are installed onto specific cola widgets and implement the diff syntax highlighting.

class cola.views.syntax.DiffSyntaxHighlighter(doc, whitespace=True)
generate_rules()
class cola.views.syntax.GenericSyntaxHighligher(doc, *args, **kwargs)
create_rules(*rules)
formats(line)
generate_rules()
highlightBlock(qstr)
mkformat(fg=None, bg=None, bold=False)
reset()
set_colors(colordict)
class cola.views.syntax.LogSyntaxHighlighter(doc, *args, **kwargs)
generate_rules()
cola.views.syntax.TERMINAL(pattern)
Denotes that a pattern is the final pattern that should be matched. If this pattern matches no other formats will be applied, even if they would have matched.
cola.views.syntax.accessors(attr)
cola.views.syntax.install_style_properties(cls)
cola.views.syntax.set_theme_properties(widget)

Previous topic

cola.views.repo – Repository tree view

Next topic

cola.views.log – Log viewer

This Page