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



  • 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.


  • Moderators

    There are options:

    • Function
    • Field


  • 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)


  • Moderators

    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.



  • 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?


  • Moderators

    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.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.