Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kashamalasha on February 27, 2015, 10:49:59 pm

Title: Color theme SUNBURST from Sublime Text 3
Post by: kashamalasha on February 27, 2015, 10:49:59 pm
Hi, everybody.
Could you tell me, is it possible to create in Code::Blocks editor color theme like this?:
(http://funkyimg.com/i/UBD3.png)
I mean with that like colorize #define and #include macros?
Thanks.
Title: Re: Color theme SUNBURST from Sublime Text 3
Post by: oBFusCATed on February 27, 2015, 11:03:26 pm
Nope. I think that Sublime Text has semantic highlight support, cb doesn't.
Title: Re: Color theme SUNBURST from Sublime Text 3
Post by: ollydbg on February 28, 2015, 02:31:29 am
...
I mean with that like colorize #define and #include macros?
Thanks.
Do you mean colorize the "isLOW" in main() function? This is semantic highlight.
Or, you just mean colorize the line "#define isLOW ...."? This is not semantic highlight.
Title: Re: Color theme SUNBURST from Sublime Text 3
Post by: kashamalasha on February 28, 2015, 09:36:51 pm
Now I can colorize it kind of that:
(http://funkyimg.com/i/UCL6.png)
You can see that #define and #include always colorize whole row behind them.
Is it possible to split words within it?
Title: Re: Color theme SUNBURST from Sublime Text 3
Post by: scarphin on February 28, 2015, 10:33:36 pm
As already answered before, no.
Title: Re: Color theme SUNBURST from Sublime Text 3
Post by: Alpha on March 01, 2015, 12:54:40 am
As already answered before, no.
Not exactly, I think, though it would require a source edit.  Scintilla has a lexer setting "styling.within.preprocessor".