TwiceAsNice  2019-02-18
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SyntaxHighlighter Class Reference

Simple syntax highlighting for Scripter (QTextEdit). Based on the source of the Sqliteman and Qt4 examples. but very simplifier. Improved too (of course). TODO: colors of the higlited texts. User should set the colors in the preferences. Waiting for the new plugin API. More...

#include <ActionEditorImpl.h>

Inheritance diagram for SyntaxHighlighter:
Inheritance graph
Collaboration diagram for SyntaxHighlighter:
Collaboration graph

Classes

struct  HighlightingRule
 

Public Member Functions

 SyntaxHighlighter (QTextEdit *textEdit)
 

Protected Member Functions

void highlightBlock (const QString &text)
 

Protected Attributes

QVector< HighlightingRulehighlightingRules
 
QTextCharFormat keywordFormat
 
QTextCharFormat singleLineCommentFormat
 
QTextCharFormat quotationFormat
 
QTextCharFormat numberFormat
 
QTextCharFormat operatorFormat
 
SyntaxColors colors
 

Detailed Description

Simple syntax highlighting for Scripter (QTextEdit). Based on the source of the Sqliteman and Qt4 examples. but very simplifier. Improved too (of course). TODO: colors of the higlited texts. User should set the colors in the preferences. Waiting for the new plugin API.

Author
Petr Vanek, petr@.nosp@m.yarp.nosp@m.en.cz

Constructor & Destructor Documentation

◆ SyntaxHighlighter()

SyntaxHighlighter::SyntaxHighlighter ( QTextEdit *  textEdit)

Member Function Documentation

◆ highlightBlock()

void SyntaxHighlighter::highlightBlock ( const QString &  text)
protected

Member Data Documentation

◆ colors

SyntaxColors SyntaxHighlighter::colors
protected

◆ highlightingRules

QVector<HighlightingRule> SyntaxHighlighter::highlightingRules
protected

◆ keywordFormat

QTextCharFormat SyntaxHighlighter::keywordFormat
protected

◆ numberFormat

QTextCharFormat SyntaxHighlighter::numberFormat
protected

◆ operatorFormat

QTextCharFormat SyntaxHighlighter::operatorFormat
protected

◆ quotationFormat

QTextCharFormat SyntaxHighlighter::quotationFormat
protected

◆ singleLineCommentFormat

QTextCharFormat SyntaxHighlighter::singleLineCommentFormat
protected

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