Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator Source Code: Highlight keyword matches.

QtCreator Source Code: Highlight keyword matches.

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 2.0k 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.
  • D Offline
    D Offline
    dvillalobos
    wrote on last edited by
    #1

    Hi,

    Can anyone tell how to find the procedure in QtCreator code that highlights the matching keywords. :-) I have search a lot, but no results.

    Regards

    David

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dvillalobos
      wrote on last edited by
      #2

      This is the closer I can get:

      @
      void CurrentDocumentFind::highlightAll(const QString &txt, Find::FindFlags findFlags)
      {
      QTC_ASSERT(m_currentFind, return);
      m_currentFind->highlightAll(txt, findFlags);
      }
      @

      But can't find the definition for highlightAll. Any idea?

      Regards

      David

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sergey-shambir
        wrote on last edited by
        #3

        I didn't understand which language keywords you mean and which highlighting. Can you explain more detaily please?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dvillalobos
          wrote on last edited by
          #4

          Hi sergey-shambir, thanks for your reply.

          In QtCreator, when you Find some text, and the text is found, the Editor highlight (in yellow) the matching words, I want to know, how QtCreator does it.

          Regards

          David

          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