Syntax highlighter for Python console. More...
#include <PythonConsole.h>
Public Member Functions | |
void | highlightBlock (const QString &text) |
Detects all kinds of text to highlight them in the correct color. | |
PythonConsoleHighlighter (QObject *parent) | |
~PythonConsoleHighlighter () | |
Protected Member Functions | |
void | colorChanged (const QString &type, const QColor &col) |
Syntax highlighter for Python console.
Definition at line 150 of file PythonConsole.h.
PythonConsoleHighlighter::PythonConsoleHighlighter | ( | QObject * | parent | ) |
Definition at line 1078 of file PythonConsole.cpp.
PythonConsoleHighlighter::~PythonConsoleHighlighter | ( | ) |
Definition at line 1083 of file PythonConsole.cpp.
void PythonConsoleHighlighter::colorChanged | ( | const QString & | type, | |
const QColor & | col | |||
) | [protected, virtual] |
Reimplemented from Gui::SyntaxHighlighter.
Definition at line 1119 of file PythonConsole.cpp.
void PythonConsoleHighlighter::highlightBlock | ( | const QString & | text | ) |
Detects all kinds of text to highlight them in the correct color.
Reimplemented from Gui::PythonSyntaxHighlighter.
Definition at line 1087 of file PythonConsole.cpp.
References Gui::SyntaxHighlighter::color(), Gui::PythonConsoleP::Error, Py::int, and Gui::PythonConsoleP::Message.