Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18004

No C code highlighting in C-projects and files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 3.5.1
    • C/C++/Obj-C++ Support
    • None
    • linux, ubuntu 16.04

      When I edit C project in QtCreator it still uses c++ code highlighting.
      Even when I create project via New-Other-Non-Qt-Plain C application.

      The macro __cplusplus is defined, words bool, virtual, template, namespace etc are highlighted as keywords, which brakes syntax. In every C file, despite the project kind.

      No matter if I choose clang code model, it still uses c++ code rules.

      QtCreator 3.5.1 (from Ubuntu 16.04 repo), Qt 5.5.1

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            sophos Alex Cones
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes