[Qt-creator] How to get syntax highlighting for CMakeLists.txt?

Nikos Chantziaras realnc at gmail.com
Wed Mar 27 11:59:07 CET 2013


When I open a CMakeLists.txt in Creator it pops up an information bar 
saying:

"A highlight definition was not found for this file. Would you like to 
try to find one?"

How do I get this to work?  Opening the file in Kate or KWrite works 
just fine.  In the options, "/usr/share/apps/katepart/syntax" is 
configured as the fallback location (and the "Use fallback location" 
checkbox is checked.) And there is a 
"/usr/share/apps/katepart/syntax/cmake.xml" file (which, again, works 
just fine in Kate).

I'm on Qt Creator 2.7.0 with Qt 4.8.4 and KDE 4.10.1.




More information about the Qt-creator mailing list