Results 1 to 3 of 3

Thread: Scintilla features with QSyntaxHighlighter

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Scintilla features with QSyntaxHighlighter

    Hello !

    I gave up using QScintilla since Scintilla has to be tweaked in order to highlight different classes of keywords.

    I wanted to know what features I can integrate "easily" with Qt thanks to classes such as QSyntaxHighlighter or others.

    Just asking if those features can be made:
    - Stream/line comments, #preprocessors, strings and characters
    - Function declaration (scintilla doesn't do it by default, but textmate does, it's great I think).
    - Brace match on cursor
    - character operators coloring (such as "[]{}()+*-/^&%!=|:;.<>")
    - color certain keyword classes differently

    I don't know what you guys think about Scintilla, but the code is enormous, I agree that it's good that it highlights a lot of languages, does code folding, coffee etc, but I couldn't at least customize my lexer, the code looks quite ugly and Scite doesn't build natively on mac. Maybe it is very fast, but I can't really compare to a similar application done with another code parser, for languages such as C++, python or HTML.

  2. #2
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Scintilla features with QSyntaxHighlighter

    Have a look at this and do some quick modification to see how it goes for you. I would say that nothing you've mentioned is going to be hard to implement.

  3. #3
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Scintilla features with QSyntaxHighlighter

    I was curious about this subject so I decided to follow up. Here's an attached screen of the results.

    Highlighting.jpg

Similar Threads

  1. Using QSyntaxHighlighter
    By chris_helloworld in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2010, 11:22
  2. Replies: 2
    Last Post: 9th November 2009, 16:40
  3. Strange behavior of QSyntaxHighlighter in Qt3
    By lorebett in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2009, 14:50
  4. Accessing the current QTextBlock in QSyntaxHighlighter
    By lorebett in forum Qt Programming
    Replies: 16
    Last Post: 11th December 2008, 21:45
  5. QSyntaxHighlighter and faked currentParagraph()
    By mcostalba in forum Qt Programming
    Replies: 4
    Last Post: 11th December 2008, 00:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.