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. QtCreator and C-syntax highlighting.
Forum Updated to NodeBB v4.3 + New Features

QtCreator and C-syntax highlighting.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.2k 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.
  • K Offline
    K Offline
    kuzulis
    Qt Champions 2020
    wrote on last edited by
    #1

    Hi.

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

    main.c
    [code]
    struct class {
    // fields
    };
    [/code]

    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?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jeffdag
      wrote on last edited by
      #2

      Hi!

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

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

        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.

        (Z(:^

        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