A representation of a highlighting theme for a SyntaxHighlighter.
More...
#include <SyntaxHighlighterTheme.h++>
A representation of a highlighting theme for a SyntaxHighlighter.
The class associates syntax elements (identified by strings) with text formats.
- Author
- Mark Lindner
◆ SyntaxHighlighterTheme()
◆ ~SyntaxHighlighterTheme()
◆ elements()
QStringList elements |
( |
| ) |
const |
Returns the list of syntax elements that are assigned in this theme.
◆ formatForElement()
QTextCharFormat formatForElement |
( |
const QString & |
element | ) |
const |
Gets the text format for a given syntax element.
◆ name()
Returns the name of the theme.
◆ notifyChanged()
◆ objectChanged
Emitted when the object has changed in some way.
◆ setFormatForElement()
void setFormatForElement |
( |
const QString & |
element, |
|
|
const QTextCharFormat & |
format |
|
) |
| |
Sets the text format for a given syntax element.
- Parameters
-
element | The syntax element. |
format | The text format. |
◆ setName()
void setName |
( |
const QString & |
name | ) |
|
|
inline |
Sets the name of the theme.
The documentation for this class was generated from the following file: