47 #include <QSyntaxHighlighter> 50 #include <QTextCharFormat> 51 #include <QTextDocument> 65 QStringList keywordPatterns_;
66 QStringList pluginPatterns_;
67 QStringList functionPatterns_;
68 QStringList typePatterns_;
72 void highlightBlock(
const QString &text);
81 QTextCharFormat format;
84 QVector<HighlightingRule> highlightingRules_;
86 QRegExp commentStartExpression_;
87 QRegExp commentEndExpression_;
89 QTextCharFormat keywordFormat_;
90 QTextCharFormat pluginFormat_;
91 QTextCharFormat functionFormat_;
92 QTextCharFormat typeFormat_;
95 QTextCharFormat singleLineCommentFormat_;
96 QTextCharFormat multiLineCommentFormat_;
97 QTextCharFormat quotationFormat_;
98 QTextCharFormat listFormat_;
void init()
common initializer function called by the constructors
void update()
Updates the highlighter with the current rule set defined in the patterns.