Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Is it really possible to add new keywords into QScintilla lexer?
Qt 6.11 is out! See what's new in the release blog

Is it really possible to add new keywords into QScintilla lexer?

Scheduled Pinned Locked Moved 3rd Party Software
6 Posts 4 Posters 4.3k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am wondering if we can add new keywords(custom keywords) into QScintilla lexer. I know there are different lexer types available in QScintilla but my file contains cpp and some assembly codes. So I wanted to add some keywords in existing cpp lexer. It is mentioned that by making subclass of lexer class we should be able to add keywords using below function
    @const char* mySubLexClass::keywords(int set) @

    But somehow I am not able to successfully add my keywords into already specified ones.
    Could you please guide me to achieve this? Any hint or suggestion will be highly appreciable.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Did you try to ask at the QScintilla support channels already?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        No because I don't know how to reach them. Could you please let me know how to do that?
        I looked for QScintilla forums but did not find any active forum. So thought of asking here.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          The QScintilla mailing list at http://www.riverbankcomputing.com/pipermail/qscintilla/ would be a good starting point.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dridk
            wrote on last edited by
            #5

            Did you success ? If yes, could you give me the solution !

            Nothing in Biology Makes Sense Except in the Light of Evolution

            1 Reply Last reply
            0
            • D Offline
              D Offline
              doubitchou
              wrote on last edited by
              #6

              This subject is still requiring an answer please.

              1 Reply Last reply
              0

              • Login

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