[Qt-creator] issue with syntax highlighting

Nikolai Kosjar nikolai.kosjar at theqtcompany.com
Wed Dec 16 18:19:44 CET 2015


> I've found some problem. There's no code highlighting under preprocessor
> definition, even if definition is true.
> Look screenshot 1
> <https://hsto.org/files/e8e/f03/443/e8ef03443d5d4579a6da5c26bd3e82a3.png> before
> and screenshot 2
> <https://habrastorage.org/files/0ab/04c/dfe/0ab04cdfe0df46a1bec87e3fc296b7bb.png>
> after.

Looks like the editor document is not updated when the generic project 
defines change. Closing and re-opening the documents seems to help here.

Please create a bug report at https://bugreports.qt.io/ .

> Definitions which are false are just grey
> <https://habrastorage.org/files/f9d/77a/fcf/f9d77afcf4b0462faa29ab1039740227.png>.
 > How to correct that?

That's normal, your compiler probably behaves the same way.


More information about the Qt-creator mailing list