[Qt-creator] How to get syntax highlighting for CMakeLists.txt?
Michael Jackson
imikejackson at gmail.com
Thu Mar 28 14:25:23 CET 2013
On Mar 28, 2013, at 7:30 AM, Nikos Chantziaras wrote:
> On 28/03/13 13:03, Nikos Chantziaras wrote:
>> 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? [...]
>>>
>>> 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
>
> Sorry for the monologue folks, but I've come across another issue now.
> After actually building the project, Creator now red-underlines some
> lines in my CMakeLists.txt, even though there's nothing wrong with them.
>
> Is this a known problem?
I have noticed that Creator will red line:
if ( something....
but NOT
if(something ....
Note the difference in spaces. Both are Valid CMake codes.
---
Mike Jackson
More information about the Qt-creator
mailing list