Results 1 to 4 of 4

Thread: link Syntax highlighting with my own editor

  1. #1
    Join Date
    Nov 2013
    Posts
    46
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default link Syntax highlighting with my own editor

    I made text editor with menu bar using widgets given in qt GUI. But i want my text keywords should be highlighted with different colors.so how to link text eeditor with Qsyntaxhighlighter Class?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: link Syntax highlighting with my own editor

    Just like it is explained in the QSyntaxHighlighter documentation.
    The documentation for QSyntaxHighlighter is very detailed about how to do this, with code examples, what more do you need?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Nov 2013
    Posts
    11
    Qt products
    Qt5

    Default Re: link Syntax highlighting with my own editor

    In QSyntaxHighlighter they have created their own editor through coding but i created my editor using widget only. So which code i extract from QSyntaxHighlighter to use in my own editor?

  4. #4
    Join Date
    Nov 2013
    Posts
    11
    Qt products
    Qt5

    Default Re: link Syntax highlighting with my own editor

    thanku it works...

Similar Threads

  1. Qt Creator syntax highlighting
    By zaphod.b in forum Qt Programming
    Replies: 0
    Last Post: 11th June 2013, 12:13
  2. Syntax Highlighting for CUDA Code
    By jiddoo in forum Qt Tools
    Replies: 1
    Last Post: 14th April 2010, 09:50
  3. QTableWidget || QListWIdget with syntax highlighting
    By ericV in forum Qt Programming
    Replies: 7
    Last Post: 21st August 2009, 13:26
  4. Refreshing syntax highlighting
    By jpn in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2006, 20:09
  5. A Qt4 editor part with syntax highlighting and stuff?
    By mgoettsche in forum General Discussion
    Replies: 3
    Last Post: 22nd January 2006, 16:32

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.