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. QT creator syntax highlighting for methods, functions, namespaces, parameters ect...? [solved]

QT creator syntax highlighting for methods, functions, namespaces, parameters ect...? [solved]

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 4.1k 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.
  • P Offline
    P Offline
    pwnstar23
    wrote on last edited by
    #1

    In the editor I found the place that you change the colors for certain syntax's. However there is not a value for methods, functions, parameters.. and more is there any way to add them so that you can set it to a color? Strangely there is an option for virtual methods, so at least it knows the difference from functions and methods, but won't let you set the color of either.

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

      There are options:

      • Function
      • Field

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pwnstar23
        wrote on last edited by
        #3

        I have field, I do not have function. Don't have method either.

        Qt Creator 2.4.1
        Based on Qt 4.7.4 (32 bit)

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

          Maybe it was added in the meantime - I'm using the bleeding edge, which is the master branch from git. You can check out the newly released 2.6 beta, too.

          Anyway, I don't think us users can add new types, it depends on the parser. You can ask for/ propose those changes on Qt Creator mailing list, or even help in implementing them.

          (Z(:^

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pwnstar23
            wrote on last edited by
            #5

            Trying to compile the latest qt creator on windows having big problems, mostly that I don't know what I'm doing. Is there a walk through for compiling on windows?

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

              Yes. Download a linux distro, install, use, and live a happy life from now on.

              Seriously, there is a big-lettered README file in Qt Creator's sources, it contains all the info you need, including a step by step guide.

              (Z(:^

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pwnstar23
                wrote on last edited by
                #7

                Well I took your advice and put linuxmint on a vm. After giting the repo and compiling it which was really easy on linux, i ended up with 2.6.81 of qt creator.

                I can confirm that there are added options including function and enumeration. Still no method though. And strangely static has been removed.

                EDIT: after playing around with it, function will color both methods and functions the same color. Not ideal but I can live with it.

                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