def __init__(self, parent=None): QsciLexerPOV.__init__(self, parent) Lexer.__init__(self) self.commentString = "//" self.streamCommentString = {'start': '/* ', 'end': ' */'} self.boxCommentString = {'start': '/* ', 'middle': ' * ', 'end': ' */'} return
def __init__(self, parent=None): """ Constructor @param parent parent widget of this lexer """ QsciLexerPOV.__init__(self, parent) Lexer.__init__(self) self.commentString = QString("//") self.streamCommentString = {"start": QString("/* "), "end": QString(" */")} self.boxCommentString = {"start": QString("/* "), "middle": QString(" * "), "end": QString(" */")}
def __init__( self, parent = None ): QsciLexerPOV.__init__( self, parent ) Lexer.__init__( self ) self.commentString = "//" self.streamCommentString = { 'start' : '/* ', 'end' : ' */' } self.boxCommentString = { 'start' : '/* ', 'middle' : ' * ', 'end' : ' */' } return
def __init__(self, parent): QsciLexerPOV.__init__(self, parent) self.lexer = Lexer.Lexer(self.language()) self.setDefaultPaper(self.lexer.get_globaldefault_paper()) self.setFont(self.lexer.get_default_font()) self.comment_string = QString("//") self.stream_comment_string = { 'start' : QString('/* '), 'end' : QString(' */') }
def defaultKeywords(self, kwSet): """ Public method to get the default keywords. @param kwSet number of the keyword set (integer) @return string giving the keywords (string) or None """ return QsciLexerPOV.keywords(self, kwSet)
def defaultColor(self, style): '''Returns the foreground colour of the text for style number style''' color = self.lexer.get_default_color(style, self.description(style)) if color != 'not': return color return QsciLexerPOV.defaultColor(self, style)
dumpLexer( QsciLexerPython() ) dumpLexer( QsciLexerBash() ) dumpLexer( QsciLexerBatch() ) dumpLexer( QsciLexerCMake() ) dumpLexer( QsciLexerCPP() ) dumpLexer( QsciLexerCSharp() ) dumpLexer( QsciLexerCSS() ) dumpLexer( QsciLexerDiff() ) dumpLexer( QsciLexerD() ) dumpLexer( QsciLexerFortran77() ) dumpLexer( QsciLexerFortran() ) dumpLexer( QsciLexerHTML() ) dumpLexer( QsciLexerIDL() ) dumpLexer( QsciLexerJava() ) dumpLexer( QsciLexerJavaScript() ) dumpLexer( QsciLexerLua() ) dumpLexer( QsciLexerMakefile() ) dumpLexer( QsciLexerPascal() ) dumpLexer( QsciLexerPerl() ) dumpLexer( QsciLexerPostScript() ) dumpLexer( QsciLexerPOV() ) dumpLexer( QsciLexerProperties() ) dumpLexer( QsciLexerRuby() ) dumpLexer( QsciLexerSQL() ) dumpLexer( QsciLexerTCL() ) dumpLexer( QsciLexerTeX() ) dumpLexer( QsciLexerVHDL() ) dumpLexer( QsciLexerXML() ) dumpLexer( QsciLexerYAML() )