Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::SyntaxHighlighter Class Reference
+ Inheritance diagram for inviwo::SyntaxHighlighter:

Signals

void update ()
 

Public Member Functions

 SyntaxHighlighter (QTextDocument *parent)
 
const QTextCharFormat & defaultFormat () const
 
void setDefaultFormat (QTextCharFormat format)
 
int fontSize () const
 
void setFontSize (int size)
 
const std::string & font () const
 
void setFont (const std::string &font)
 
const vec4 & highlight () const
 
void setHighlight (const vec4 &highlight)
 
void addPattern (QTextCharFormat format, std::string_view pattern)
 
void addPatterns (QTextCharFormat format, std::span< const std::string_view > patterns)
 
void addPatternWithFormatStr (QTextCharFormat format, std::span< const std::string_view > patterns, std::string_view formatStr)
 
void addWordBoundaryPattern (QTextCharFormat format, std::span< const std::string_view > patterns)
 
void addMultBlockPattern (QTextCharFormat format, std::string_view startPattern, std::string_view endPattern)
 
void clear ()
 

Protected Member Functions

void highlightBlock (const QString &text)
 

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