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. How can I turn off code highlighting?
Forum Updated to NodeBB v4.3 + New Features

How can I turn off code highlighting?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 452 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.
  • I Offline
    I Offline
    iss7gli7
    wrote on last edited by
    #1

    By many reason I almost always turn off the highlighting of code in the QtQreator. In previous versions I just turn off plugin CppEditor.

    Currently I try last version from git-repository, and there is not the CppEditor plugin in this version. Now it is probably merged with the CppTools, but if I try turn off it then many other things stop working.

    Can anyone tell me how this can be done with simple actions?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can try by clearing highlighter definitions. Go to Options->Text Editor->Generic Highlighter. It will show you the path where definitions are stored. Go to that location and remove them. Or add .cpp extension to the blocking list.

      (Z(:^

      1 Reply Last reply
      1
      • I Offline
        I Offline
        iss7gli7
        wrote on last edited by
        #3
        1. The path with "User Highlight Definition Files" have no files.
        2. When I tried to change the "Ignored File Templates", a save error occurs. Some kind of bug with saving.

        When I tried store \A(?:[^/]*.cpp)\z after close and open window options it became \A([^/]:[^

        Before storing:
        https://drive.google.com/file/d/1IeBBzrV5qElgPUvdbn_W2wwTx75lZ-wp/view?usp=sharing
        After close and open again:
        https://drive.google.com/file/d/1EpeqUvVhQoE06NC7wVYsgLUhHniL7YPS/view?usp=sharing

        It in both versions, from git and from installer. OS: Ubuntu 20.04

        VRoninV 1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          No idea then. I guess C++ highlighting is such a basic function of IDE it can't be turned off. If it was possible in the past it was probably by accident.

          (Z(:^

          1 Reply Last reply
          0
          • I iss7gli7
            1. The path with "User Highlight Definition Files" have no files.
            2. When I tried to change the "Ignored File Templates", a save error occurs. Some kind of bug with saving.

            When I tried store \A(?:[^/]*.cpp)\z after close and open window options it became \A([^/]:[^

            Before storing:
            https://drive.google.com/file/d/1IeBBzrV5qElgPUvdbn_W2wwTx75lZ-wp/view?usp=sharing
            After close and open again:
            https://drive.google.com/file/d/1EpeqUvVhQoE06NC7wVYsgLUhHniL7YPS/view?usp=sharing

            It in both versions, from git and from installer. OS: Ubuntu 20.04

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            @iss7gli7 said in How can I turn off code highlighting?:

            When I tried store \A(?:[^/]*.cpp)\z

            Might be due to invalid RegExp syntax, try \A(?:[^\/]*\.cpp)\z

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            I 1 Reply Last reply
            0
            • VRoninV VRonin

              @iss7gli7 said in How can I turn off code highlighting?:

              When I tried store \A(?:[^/]*.cpp)\z

              Might be due to invalid RegExp syntax, try \A(?:[^\/]*\.cpp)\z

              I Offline
              I Offline
              iss7gli7
              wrote on last edited by iss7gli7
              #6

              @VRonin
              It also was spoiled to \\A\([^/]:[^\\

              When I opened the first time it was like this:
              https://drive.google.com/file/d/1epZFK0OGbFZEf1TAzV57XUzmobKUbao-/view?usp=sharing
              and I done new one in the same way.

              For Windows version, saving of "Ignored File Templates" also doesn't work.

              And this option doesn't work for highlighting in any case, because it for some "generic highlighter" and not used for case editing cpp files.

              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