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