Syntax highlighter for Python. More...
#include <PythonEditor.h>
Public Member Functions | |
void | highlightBlock (const QString &text) |
Detects all kinds of text to highlight them in the correct color. | |
PythonSyntaxHighlighter (QObject *parent) | |
Constructs a Python syntax highlighter. | |
virtual | ~PythonSyntaxHighlighter () |
Destroys this object. |
Syntax highlighter for Python.
Definition at line 74 of file PythonEditor.h.
PythonSyntaxHighlighter::PythonSyntaxHighlighter | ( | QObject * | parent | ) |
Constructs a Python syntax highlighter.
Definition at line 207 of file PythonEditor.cpp.
PythonSyntaxHighlighter::~PythonSyntaxHighlighter | ( | ) | [virtual] |
Destroys this object.
Definition at line 214 of file PythonEditor.cpp.
void PythonSyntaxHighlighter::highlightBlock | ( | const QString & | text | ) |
Detects all kinds of text to highlight them in the correct color.
Reimplemented in Gui::PythonConsoleHighlighter.
Definition at line 222 of file PythonEditor.cpp.
References Gui::SyntaxHighlighter::BlockComment, buffer, Gui::SyntaxHighlighter::Classname, Gui::SyntaxHighlighter::colorByType(), Gui::SyntaxHighlighter::Comment, Gui::SyntaxHighlighter::Defname, Gui::SyntaxHighlighter::Keyword, Gui::PythonSyntaxHighlighterP::keywords, Gui::SyntaxHighlighter::maximumUserState(), Gui::SyntaxHighlighter::Number, Gui::SyntaxHighlighter::Operator, Gui::SyntaxHighlighter::String, and Gui::SyntaxHighlighter::Text.