#include <codetexthighlighter.h>
◆ CodeTextHighlighter()
CodeTextHighlighter::CodeTextHighlighter |
( |
QTextDocument * | parent = 0 | ) |
|
|
explicit |
Constructor. Creates the highlighting rule by calling the function keywords().
- Parameters
-
parent | the parent QTextDocument |
◆ highlightBlock()
Does highlighting the code block.
- Parameters
-
text | the code block to highlight |
◆ keywords()
Create a list of keywords for the selected programming language.
- Returns
- list of keywords
◆ m_classFormat
◆ m_commentEndExpression
QRegExp CodeTextHighlighter::m_commentEndExpression |
|
private |
◆ m_commentStartExpression
QRegExp CodeTextHighlighter::m_commentStartExpression |
|
private |
◆ m_functionFormat
◆ m_highlightingRules
◆ m_keywordFormat
◆ m_multiLineCommentFormat
◆ m_quotationFormat
◆ m_singleLineCommentFormat
The documentation for this class was generated from the following files: