On Fri, Apr 3, 2015 at 7:36 AM, john lunzer <[email protected]> wrote:
This is good news. I poked around with Leo's QScintilla widget and I was > able to get line numbers showing up. It looks great! But Leo's QScintilla > need's quite a bit of work before it's really ready for daily use. > Yes. I have, in effect, abandoned the QScintilla project. > I noticed you only implemented the Python lexer. > > The bad news is like you said you're mostly at the mercy of the QScintilla > lexers. There might be a way to add the Leo directives with the custom > Lexer or by subclassing one of the built in lexers. > That does not seem to be possible. See the comment in the node:: Core classes-->@file leoColorizer.py-->class PythonLexer (does not work) # Stuck: regardless of class: there seems to be no way to force a recolor. It's good to know that there might be a future in QScintilla. > Only if Leo's Scintilla colorizer can get unstuck. That said, the subclassed QFrame class in the link > <https://john.nachtimwald.com/2009/08/15/qtextedit-with-line-numbers/> > from my previous post works with both QTextEdit and QTextBrowser > Cool! I missed that link earlier. Thanks for repeating it. I'll play around with it asap. It would be a great feature to have. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
