#include <highlighter_dec.h>
Classes | |
struct | HighlightingRule |
Public Member Functions | |
Highlighter_Dec (QTextDocument *parent=0) | |
Protected Member Functions | |
void | highlightBlock (const QString &text) |
Private Attributes | |
QVector< HighlightingRule > | highlightingRules |
vector | |
QRegExp | commentStartExpression |
regular expression for comment section start item | |
QRegExp | commentEndExpression |
regular expression for comment section end item | |
QTextCharFormat | keywordFormat |
text format for keyword | |
QTextCharFormat | singleLineCommentFormat |
text format for single comment | |
QTextCharFormat | multiLineCommentFormat |
text format for multi line comment |
Highlighter_Dec::Highlighter_Dec | ( | QTextDocument * | parent = 0 |
) |
creating function
QTextDocument |
void Highlighter_Dec::highlightBlock | ( | const QString & | text | ) | [protected] |
set highlighting block
QRegExp Highlighter_Dec::commentEndExpression [private] |
regular expression for comment section end item
QRegExp Highlighter_Dec::commentStartExpression [private] |
regular expression for comment section start item
QVector<HighlightingRule> Highlighter_Dec::highlightingRules [private] |
vector
QTextCharFormat Highlighter_Dec::keywordFormat [private] |
text format for keyword
QTextCharFormat Highlighter_Dec::multiLineCommentFormat [private] |
text format for multi line comment
QTextCharFormat Highlighter_Dec::singleLineCommentFormat [private] |
text format for single comment