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