KSyntaxHighlighter Class Reference
#include <ksyntaxhighlighter.h>
Inherits TQSyntaxHighlighter.
Inherited by KSpellingHighlighter.
Public Types | |
| enum | SyntaxMode { PlainTextMode , RichTextMode } |
Public Member Functions | |
| KSyntaxHighlighter (TQTextEdit *textEdit, bool colorQuoting=false, const TQColor &QuoteColor0=black, const TQColor &QuoteColor1=TQColor(0x00, 0x80, 0x00), const TQColor &QuoteColor2=TQColor(0x00, 0x80, 0x00), const TQColor &QuoteColor3=TQColor(0x00, 0x80, 0x00), SyntaxMode mode=PlainTextMode) | |
| int | highlightParagraph (const TQString &text, int endStateOfLastPara) |
Detailed Description
Syntax sensitive text highlighter.
Definition at line 42 of file ksyntaxhighlighter.h.
Member Enumeration Documentation
◆ SyntaxMode
| enum KSyntaxHighlighter::SyntaxMode |
Definition at line 45 of file ksyntaxhighlighter.h.
Constructor & Destructor Documentation
◆ KSyntaxHighlighter()
| KSyntaxHighlighter::KSyntaxHighlighter | ( | TQTextEdit * | textEdit, |
| bool | colorQuoting = false, |
||
| const TQColor & | QuoteColor0 = black, |
||
| const TQColor & | QuoteColor1 = TQColor( 0x00, 0x80, 0x00 ), |
||
| const TQColor & | QuoteColor2 = TQColor( 0x00, 0x80, 0x00 ), |
||
| const TQColor & | QuoteColor3 = TQColor( 0x00, 0x80, 0x00 ), |
||
| SyntaxMode | mode = PlainTextMode |
||
| ) |
Definition at line 117 of file ksyntaxhighlighter.cpp.
◆ ~KSyntaxHighlighter()
| KSyntaxHighlighter::~KSyntaxHighlighter | ( | ) |
Definition at line 138 of file ksyntaxhighlighter.cpp.
Member Function Documentation
◆ highlightParagraph()
| int KSyntaxHighlighter::highlightParagraph | ( | const TQString & | text, |
| int | endStateOfLastPara | ||
| ) |
Definition at line 143 of file ksyntaxhighlighter.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference