Defines a Python lexer with a alternative colour scheme to the standard one provided by QsciLexerPython.
More...
#include <AlternateCSPythonLexer.h>
|
| | AlternateCSPythonLexer (const QFont &font) |
| | Construct a lexer with a font to be used for all text styles.
|
| |
| QColor | defaultColor (int style) const override |
| | Returns the foreground colour of the text for a style.
|
| |
| QFont | defaultFont (int style) const override |
| | Returns the font of the text.
|
| |
| const char * | keywords (int set) const override |
| | **
|
| |
Defines a Python lexer with a alternative colour scheme to the standard one provided by QsciLexerPython.
Definition at line 15 of file AlternateCSPythonLexer.h.
◆ AlternateCSPythonLexer()
| AlternateCSPythonLexer::AlternateCSPythonLexer |
( |
const QFont & |
font | ) |
|
Construct a lexer with a font to be used for all text styles.
- Parameters
-
| font | A font to used for the text |
Definition at line 13 of file AlternateCSPythonLexer.cpp.
◆ defaultColor()
| QColor AlternateCSPythonLexer::defaultColor |
( |
int |
style | ) |
const |
|
override |
Returns the foreground colour of the text for a style.
- Parameters
-
| style | An enum defining the type of element encountered |
- Returns
- A QColor for this element type
Definition at line 20 of file AlternateCSPythonLexer.cpp.
◆ defaultFont()
| QFont AlternateCSPythonLexer::defaultFont |
( |
int |
style | ) |
const |
|
override |
◆ keywords()
| const char * AlternateCSPythonLexer::keywords |
( |
int |
set | ) |
const |
|
override |
◆ customKeywords
| constexpr const char* AlternateCSPythonLexer::customKeywords = "True False" |
|
staticconstexprprivate |
◆ m_font
| QFont AlternateCSPythonLexer::m_font |
|
private |
The documentation for this class was generated from the following files: