Qt Creator QSS Syntax Highlighting Support
-
I have a project were i added a .qss file to provide a custom style. However in Qt Creator theres no syntax highlighting and it looks like this:
I already tryed the suggestion from the internet to threat the code like .css but still no highlighting.
So how to add it properly?
-
Qt Creator does not support highlighting of QSS code. I guess the best way to "enable" it is to write the highlighter and commit it to Qt Creator repository.
As a cheap workaround you could use Kate or Gedit to edit QSS, they do have some highlighting support for QSS.
-
@sierdzio said in Qt Creator QSS Syntax Highlighting Support:
As a cheap workaround you could use Kate or Gedit to edit QSS, they do have some highlighting support for QSS.
But if Kate can do it, QtCreator should be able too. The Generic Highlighter is base on Kate's engine: https://doc.qt.io/qtcreator/creator-highlighting.html#generic-highlighting
-
Yes, it should. Since OP mentioned modifying MIMEs I assumed Kate files did not work or not well enough (even in Kate I get only very very basic highlighting for QSS).