CoreTrace Qt IDE 1.0
The CoreTrace Text editor
 
Loading...
Searching...
No Matches
CppHighlighter Class Reference

#include <syntax_highlighter.hpp>

Inheritance diagram for CppHighlighter:
SyntaxHighlighter

Classes

struct  HighlightingRule
 

Public Member Functions

 CppHighlighter (QTextDocument *parent=nullptr)
 
- Public Member Functions inherited from SyntaxHighlighter
 SyntaxHighlighter (QTextDocument *parent=nullptr)
 
virtual ~SyntaxHighlighter ()=default
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Private Attributes

QVector< HighlightingRulehighlightingRules
 
QTextCharFormat keywordFormat
 
QTextCharFormat functionFormat
 
QTextCharFormat typeFormat
 
QTextCharFormat commentFormat
 
QTextCharFormat stringFormat
 
QTextCharFormat numberFormat
 

Constructor & Destructor Documentation

◆ CppHighlighter()

CppHighlighter::CppHighlighter ( QTextDocument *  parent = nullptr)
explicit

Member Function Documentation

◆ highlightBlock()

void CppHighlighter::highlightBlock ( const QString &  text)
overrideprotectedvirtual

Implements SyntaxHighlighter.

Member Data Documentation

◆ commentFormat

QTextCharFormat CppHighlighter::commentFormat
private

◆ functionFormat

QTextCharFormat CppHighlighter::functionFormat
private

◆ highlightingRules

QVector<HighlightingRule> CppHighlighter::highlightingRules
private

◆ keywordFormat

QTextCharFormat CppHighlighter::keywordFormat
private

◆ numberFormat

QTextCharFormat CppHighlighter::numberFormat
private

◆ stringFormat

QTextCharFormat CppHighlighter::stringFormat
private

◆ typeFormat

QTextCharFormat CppHighlighter::typeFormat
private

The documentation for this class was generated from the following files: