59 void highlightSubBlock(
const QString& text,
const int startIndex,
const int currState);
62 struct HighlightingRule {
64 QTextCharFormat format;
66 QVector<HighlightingRule> hlRules;
68 QRegExp xmlProcInstStartExpression;
69 QRegExp xmlProcInstEndExpression;
70 QRegExp xmlCommentStartExpression;
71 QRegExp xmlCommentEndExpression;
72 QRegExp xmlDoctypeStartExpression;
73 QRegExp xmlDoctypeEndExpression;
75 QRegExp xmlOpenTagStartExpression;
76 QRegExp xmlOpenTagEndExpression;
77 QRegExp xmlCloseTagStartExpression;
78 QRegExp xmlCloseTagEndExpression;
79 QRegExp xmlAttributeStartExpression;
80 QRegExp xmlAttributeEndExpression;
81 QRegExp xmlAttValStartExpression;
82 QRegExp xmlAttValEndExpression;
84 QRegExp xmlAttValExpression;
87 QTextCharFormat xmlProcInstFormat;
88 QTextCharFormat xmlDoctypeFormat;
89 QTextCharFormat xmlCommentFormat;
90 QTextCharFormat xmlTagFormat;
91 QTextCharFormat xmlEntityFormat;
92 QTextCharFormat xmlAttributeFormat;
93 QTextCharFormat xmlAttValFormat;