Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How and where to find Qt syntax highlights and Advanced Editor options
Forum Update on Monday, May 27th 2025

How and where to find Qt syntax highlights and Advanced Editor options

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 975 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umen242
    wrote on 30 Sept 2019, 11:20 last edited by
    #1

    Hello all
    i like to build Text Editor into my application , what is the best why to implement syntax highlighting
    And maybe simple syntax completion something like notpad++ or Qt creator
    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 30 Sept 2019, 11:55 last edited by
      #2

      Hi
      Have a look at this example
      https://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html#
      it is using https://doc.qt.io/qt-5/qsyntaxhighlighter.html
      You can add in a
      https://doc.qt.io/qt-5/qcompleter.html
      fo9r some completion.

      U 1 Reply Last reply 30 Sept 2019, 12:23
      2
      • M mrjj
        30 Sept 2019, 11:55

        Hi
        Have a look at this example
        https://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html#
        it is using https://doc.qt.io/qt-5/qsyntaxhighlighter.html
        You can add in a
        https://doc.qt.io/qt-5/qcompleter.html
        fo9r some completion.

        U Offline
        U Offline
        umen242
        wrote on 30 Sept 2019, 12:23 last edited by
        #3

        @mrjj
        Thanks !
        Do you know any advance open source text editor which are open source ?
        except Qt creator

        M J 2 Replies Last reply 30 Sept 2019, 12:33
        0
        • U umen242
          30 Sept 2019, 12:23

          @mrjj
          Thanks !
          Do you know any advance open source text editor which are open source ?
          except Qt creator

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 30 Sept 2019, 12:33 last edited by
          #4

          @umen242
          Hi
          What would make it advanced?
          There is notepad++
          Its a super nice editor with tons of plugins.

          U 1 Reply Last reply 1 Oct 2019, 06:28
          2
          • U umen242
            30 Sept 2019, 12:23

            @mrjj
            Thanks !
            Do you know any advance open source text editor which are open source ?
            except Qt creator

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 1 Oct 2019, 05:45 last edited by
            #5

            @umen242 Take a look at https://www.scintilla.org/ and https://www.scintilla.org/SciTE.html

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2
            • U Offline
              U Offline
              umen242
              wrote on 1 Oct 2019, 06:27 last edited by
              #6

              what about this ?
              https://riverbankcomputing.com/software/qscintilla/intro

              1 Reply Last reply
              0
              • M mrjj
                30 Sept 2019, 12:33

                @umen242
                Hi
                What would make it advanced?
                There is notepad++
                Its a super nice editor with tons of plugins.

                U Offline
                U Offline
                umen242
                wrote on 1 Oct 2019, 06:28 last edited by
                #7

                @mrjj
                i need build in my app

                M 1 Reply Last reply 1 Oct 2019, 06:41
                0
                • U umen242
                  1 Oct 2019, 06:28

                  @mrjj
                  i need build in my app

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 1 Oct 2019, 06:41 last edited by
                  #8

                  @umen242
                  HI
                  Yes i understood that.
                  Notepad++ IS open source
                  https://github.com/notepad-plus-plus/notepad-plus-plus
                  and also using scintilla

                  QScintilla is fine but do note that
                  "QScintilla is available under the GNU GPL v3 and under a commercial license."

                  U 1 Reply Last reply 1 Oct 2019, 08:45
                  2
                  • M mrjj
                    1 Oct 2019, 06:41

                    @umen242
                    HI
                    Yes i understood that.
                    Notepad++ IS open source
                    https://github.com/notepad-plus-plus/notepad-plus-plus
                    and also using scintilla

                    QScintilla is fine but do note that
                    "QScintilla is available under the GNU GPL v3 and under a commercial license."

                    U Offline
                    U Offline
                    umen242
                    wrote on 1 Oct 2019, 08:45 last edited by
                    #9

                    @mrjj
                    Thanks for notice the license ... not good for me .
                    Is there any other Qt scintilla wrapper ?

                    G 1 Reply Last reply 1 Oct 2019, 09:08
                    0
                    • U umen242
                      1 Oct 2019, 08:45

                      @mrjj
                      Thanks for notice the license ... not good for me .
                      Is there any other Qt scintilla wrapper ?

                      G Offline
                      G Offline
                      Gojir4
                      wrote on 1 Oct 2019, 09:08 last edited by
                      #10

                      @umen242 Hi,

                      You may be interested by KTextEditor:
                      https://api.kde.org/frameworks/ktexteditor/html/

                      1 Reply Last reply
                      3
                      • U Offline
                        U Offline
                        umen242
                        wrote on 1 Oct 2019, 09:21 last edited by
                        #11

                        what about performance if i use the Qt build in text features ?
                        i downloaded some open source editors which using Scintilla
                        and the performance are slow but then again maybe they have been programed wrong .
                        example :
                        https://github.com/martinrotter/textosaurus/releases

                        1 Reply Last reply
                        0

                        8/11

                        1 Oct 2019, 06:41

                        • Login

                        • Login or register to search.
                        8 out of 11
                        • First post
                          8/11
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved