QtCreator and C-syntax highlighting.

  • Hi.

    I have the file extension *.c, for example, with this content:

    struct class {
    // fields

    When you open this file in QtCreator: File->Open file or project,
    editor complains "wrong type specifier" and underlines the inscription struct class

    I understand that he does not like the keyword "class", but file has the extension *.c and not *.cpp !
    In C this is not a keyword.

    Tell me, can I somehow disable this behavior for C-like files?

  • Hi!

    Did you ever find anything about this? It's really bothering me too!

  • Moderators

    If you want the developers behind Qt Creator to see this, report it on "Jira":http://qt-project.org/contribute. This forum is not frequently visited by Qt devs.

Log in to reply

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