Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: johnnyEM808 on May 07, 2015, 10:42:02 pm

Title: syntax highlighting - separate colors for preprocessor directives and headers
Post by: johnnyEM808 on May 07, 2015, 10:42:02 pm
Many IDEs offer the possibility of having different syntax highlighting colors for preprocessor directives and preprocessor headers. In

#include <Windows.h>
#include "gl_shader.hpp"

They set different colors for #include and the headers <Windows.h> and "gl_shapper.hpp"

#define is another preprocessor directive

In C::B, I haven't found a way to differentiate the highlighting colors for the preprocessor directives and headers
Title: Re: syntax highlighting - separate colors for preprocessor directives and headers
Post by: oBFusCATed on May 07, 2015, 11:47:44 pm
I think, this is a limitation/behaviour of Scintilla, our editor component.
Title: Re: syntax highlighting - separate colors for preprocessor directives and headers
Post by: johnnyEM808 on May 08, 2015, 12:46:21 am
Scintilla limitation. I see. Thanks.

Is Scintilla getting updated in the next C:B release?
Title: Re: syntax highlighting - separate colors for preprocessor directives and headers
Post by: oBFusCATed on May 08, 2015, 01:11:40 am
The night builds are using almost the latest version, so definitely yes it will be updated.