19 #ifndef __HIGHLIGHTER_HH__
20 #define __HIGHLIGHTER_HH__
23 #include <QSyntaxHighlighter>
25 #include <QTextCharFormat>
61 #ifdef ENABLE_SPELLCHECK
66 void addWord(
const QString &word);
70 void setSpellCheckActive(
const bool state);
71 #endif //ENABLE_SPELLCHECK
89 struct HighlightingRule
92 QTextCharFormat format;
94 QVector<HighlightingRule> highlightingRules;
96 QTextCharFormat keywordFormat;
97 QTextCharFormat keyword2Format;
98 QTextCharFormat environmentFormat;
99 QTextCharFormat singleLineCommentFormat;
100 QTextCharFormat chordFormat;
101 QTextCharFormat quotationFormat;
102 QTextCharFormat argumentFormat;
103 QTextCharFormat optionFormat;
105 QTextCharFormat multiLineCommentFormat;
107 Hunspell * m_checker;
108 bool m_isSpellCheckActive;
109 QTextCharFormat m_spellCheckFormat;
113 #endif // __HIGHLIGHTER_HH__