CSS Highlighter

QSyntaxHighlighter for CSS syntax.

class bci_framework.framework.editor.highlighters.css_syntax.CSSHighlighter(document)[source]
classmethod get_format(color: str, style='', fontsize=None) PySide6.QtGui.QTextCharFormat[source]

Return a QTextCharFormat with the given attributes.

highlightBlock(text: str) None[source]

Apply syntax highlighting to the given block of text.

property styles

The styles depend on the theme.