|
enum | State {
Normal = 0
, InsideSq3String = 1
, InsideDq3String = 2
, InsideSqString = 3
,
InsideDqString = 4
} |
| < Syntax highlighting states (from one text block to another):
|
|
typedef QSharedPointer< Mode > | Ptr |
|
|
| PythonSyntaxHighlighter (QTextDocument *parent, const QString &description="", QSharedPointer< CodeEditorStyle > editorStyle=QSharedPointer< CodeEditorStyle >()) |
|
void | highlight_block (const QString &text, QTextBlock &block) |
|
void | default_highlight_block (const QString &text, const TextBlockUserData *textBlockUserData) |
|
virtual void | rehighlight () |
|
| SyntaxHighlighterBase (const QString &name, QTextDocument *parent, const QString &description="", QSharedPointer< CodeEditorStyle > editorStyle=QSharedPointer< CodeEditorStyle >()) |
|
void | setFoldDetector (QSharedPointer< FoldDetector > foldDetector) |
|
virtual void | onStateChanged (bool state) |
|
virtual void | onInstall (CodeEditor *editor) |
|
QSharedPointer< CodeEditorStyle > | editorStyle () const |
|
void | highlightBlock (const QString &text) |
|
void | refreshEditor (QSharedPointer< CodeEditorStyle > editorStyle) |
|
| Mode (const Mode ©) |
|
| Mode (const QString &name, const QString &description="") |
|
bool | operator== (const Mode &other) const |
|
virtual void | onUninstall () |
|
QString | name () const |
|
bool | enabled () const |
|
void | setEnabled (bool enabled) |
|
CodeEditor * | editor () const |
|
bool | onClose () const |
|
virtual QList< QAction * > | actions () const |
|
|
QTextCharFormat | getFormatFromStyle (StyleItem::StyleType token) const |
|
const QTextCharFormat | getTextCharFormat (const QString &colorName, const QString &style=QString()) |
|
|
static QList< NamedRegExp > | makePythonPatterns (const QStringList &additionalKeywords=QStringList(), const QStringList &additionalBuiltins=QStringList()) |
|
|
static QList< NamedRegExp > | regExpProg = PythonSyntaxHighlighter::makePythonPatterns() |
|
static QRegularExpression | regExpIdProg = QRegularExpression("\\s+(\\w+)") |
|
static QRegularExpression | regExpAsProg = QRegularExpression(".*?\\b(as)\\b") |
|
static QRegularExpression | regExpOeComment = QRegularExpression("^(// ?--[-]+|##[#]+ )[ -]*[^- ]+") |
|
|
void | highlightWhitespaces (const QString &text) |
|
static QTextBlock | findPrevNonBlankBlock (const QTextBlock ¤tBlock) |
|
QRegularExpression | m_regWhitespaces |
|
QRegularExpression | m_regSpacesPtrn |
|
QSharedPointer< CodeEditorStyle > | m_editorStyle |
|
QSharedPointer< FoldDetector > | m_foldDetector |
|
◆ default_highlight_block()
void ito::PythonSyntaxHighlighter::default_highlight_block |
( |
const QString & | text, |
|
|
const TextBlockUserData * | textBlockUserData ) |
|
virtual |
◆ highlight_block()
void ito::PythonSyntaxHighlighter::highlight_block |
( |
const QString & | text, |
|
|
QTextBlock & | block ) |
|
virtual |
◆ rehighlight()
void ito::PythonSyntaxHighlighter::rehighlight |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/codeEditor/syntaxHighlighter/pythonSyntaxHighlighter.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/codeEditor/syntaxHighlighter/pythonSyntaxHighlighter.cpp