31 #ifndef XMLHIGHLIGHTER_H
32 #define XMLHIGHLIGHTER_H
34 #include <QSyntaxHighlighter>
37 #include <QTextCharFormat>
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;
TODO Comment class here.
Definition: Xmlhighlighter.h:51
XmlHighlighter(QTextDocument *parent=nullptr)
[0]
Definition: Xmlhighlighter.cpp:39
void highlightSubBlock(const QString &text, const int startIndex, const int currState)
Definition: Xmlhighlighter.cpp:131
void highlightBlock(const QString &text) override
Definition: Xmlhighlighter.cpp:363