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

Nikos Chantziaras realnc at gmail.com
Thu Mar 28 12:03:16 CET 2013


On 27/03/13 12:59, Nikos Chantziaras wrote:
> 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.

Today, it started working correctly on its own.  I didn't change 
anything in the settings.

Well, that works.  Not complaining :-P




More information about the Qt-creator mailing list