[QScintilla] QsciLexerCustom autoIndent?

Matic Kukovec matic.kukovec at pametnidom.si
Mon May 2 20:18:43 BST 2016


Hi Guys,

How do I make my custom lexer (inherited from QsciLexerCustom) indent 
the next
line on a specific characters? E.g.:
     if a == 10:
         print("Indented")           <--indented after ':'

I tried setting the 'autoIndentStyle' to 'AiOpenning' and setting the 
'blockStart' method to return ":",
but that doesn't seem to be right.
I'm using Python 3.

Thanks,
Matic
<http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciLexer.html#a79c27285b6033c553b3f54cb6c56b338> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20160502/e89a6ee8/attachment.html>


More information about the QScintilla mailing list