Results 1 to 3 of 3

Thread: Syntax Highlighter sample is wrong

  1. #1
    Join Date
    May 2007
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Syntax Highlighter sample is wrong

    Hi,

    I just saw a problem with my highlighter, and in fact I Qt4 highlighter's demo as the same one:

    Try entering a string inside a comment inside de Demo, like this for example:

    // something here "quotations there" and problem appears !

    and you'll see 2 colors. The problem seems more complicated than it seems.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Syntax Highlighter sample is wrong

    yes, the example supplied there is a very trivial one.

    For more complete implementation, see QDevelop, HaiQ or even QCodeEdit.

    For the first 2, use google.
    For the last one (QCodeEdit) see this thread: http://www.qtcentre.org/forum/f-qt-s...-3178-new.html

  3. #3
    Join Date
    May 2007
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Syntax Highlighter sample is wrong

    Thanks elcuco,

    nice peace of codes, but maybe too much for a simple example.

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.