Gui::PythonConsoleHighlighter Class Reference
Syntax highlighter for Python console. More...
#include <PythonConsole.h>
Public Member Functions | |
void highlightBlock (const QString &text) | |
PythonConsoleHighlighter (QObject *parent) | |
~PythonConsoleHighlighter () | |
![]() | |
void highlightBlock (const QString &text) | |
Detects all kinds of text to highlight them in the correct color. More... | |
PythonSyntaxHighlighter (QObject *parent) | |
Constructs a Python syntax highlighter. More... | |
virtual ~PythonSyntaxHighlighter () | |
Destroys this object. More... | |
![]() | |
QColor color (const QString &type) | |
int maximumUserState () const | |
void setColor (const QString &type, const QColor &col) | |
Sets the color col to the paragraph type type. More... | |
SyntaxHighlighter (QObject *parent) | |
Constructs a syntax highlighter. More... | |
virtual ~SyntaxHighlighter () | |
Destroys this object. More... | |
Protected Member Functions | |
void colorChanged (const QString &type, const QColor &col) | |
![]() | |
QColor colorByType (TColor type) | |
Additional Inherited Members | |
![]() | |
enum TColor { Text = 0, Comment = 1, BlockComment = 2, Number = 3, String = 4, Keyword = 5, Classname = 6, Defname = 7, Operator = 8, Output = 9, Error = 10 } | |
Detailed Description
Syntax highlighter for Python console.
Constructor & Destructor Documentation
◆ PythonConsoleHighlighter()
PythonConsoleHighlighter::PythonConsoleHighlighter | ( | QObject * | parent | ) |
◆ ~PythonConsoleHighlighter()
PythonConsoleHighlighter::~PythonConsoleHighlighter | ( | ) |
Member Function Documentation
◆ colorChanged()
|
protectedvirtual |
Reimplemented from Gui::SyntaxHighlighter.
◆ highlightBlock()
void PythonConsoleHighlighter::highlightBlock | ( | const QString & | text | ) |
The documentation for this class was generated from the following files:
- src/Gui/PythonConsole.h
- src/Gui/PythonConsole.cpp