Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to specify specific syntax/language to highlight for a given file in QtC?

How to specify specific syntax/language to highlight for a given file in QtC?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 278 Views
  • 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.
  • F Offline
    F Offline
    flashmozzg
    wrote on last edited by
    #1

    Problem: I have a .S assembly file which also has some C defines/includes. Highlight for "pure" .S files works fine, but for this specific file QtC mistakenly interprets it as a C/C++ source. Most regular text editors (sublime, vscode, np++, gedit) allow choosing syntax/language for a given file manually, but I can't find such setting for QtC. Setting MIME-types doesn't help (and probably shouldn't - what if two languages have same MIME type, i.e. if the conflict can only be resolved manually?).

    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