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

unable to get correct syntax highlighting for c sources named *.inc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.14.0-rc1
    • Editors
    • None

    Description

      i have *.inc files which are generated c sources. i obviously want the editor to highlight them accordingly.

      i didn't find a dedicated option for that, so i tried extending the patterns accepted by the text/x-csrc mime type. that didn't help - the dropdown with available highlight definitions inside the notification at the top of the editor pane doesn't show c. i suppose this may be due to the fact that c isn't handled by the generic highlighter, and the special case is not handled properly.

      note that the code model apparently parsed the file correctly - its symbols are known to the locator.

      Attachments

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

        Activity

          People

            davschul David Schulz
            buddenha Oswald Buddenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes