Scribus
Open source desktop publishing at your fingertips
sceditor.highlighter.PythonHighlighter Class Reference
Inheritance diagram for sceditor.highlighter.PythonHighlighter:
Collaboration diagram for sceditor.highlighter.PythonHighlighter:

Public Member Functions

def __init__ (self, edit)
 
def highlightBlock (self, text)
 
def highlightRules (self, text, start, finish)
 
def updateFonts (self, font)
 
def updateRules (self)
 
def updateHighlighter (self, font)
 

Public Attributes

 base_format
 
 document
 
 empty_format
 
 keywordFormat
 
 callableFormat
 
 magicFormat
 
 qtFormat
 
 selfFormat
 
 singleLineCommentFormat
 
 multiLineStringFormat
 
 quotationFormat1
 
 quotationFormat2
 
 rules
 
 multiLineStringBegin
 
 multiLineStringEnd
 

Static Public Attributes

tuple keywords
 

Member Data Documentation

tuple sceditor.highlighter.PythonHighlighter.keywords
static
Initial value:
1 = (
2  "and", "del", "for", "is", "raise",
3  "assert", "elif", "from", "lambda", "return",
4  "break", "else", "global", "not", "try",
5  "class", "except", "if", "or", "while",
6  "continue", "exec", "import", "pass", "yield",
7  "def", "finally", "in", "print"
8  )

The documentation for this class was generated from the following file: