News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Color theme SUNBURST from Sublime Text 3

Started by kashamalasha, February 27, 2015, 10:49:59 PM

Previous topic - Next topic

kashamalasha

Hi, everybody.
Could you tell me, is it possible to create in Code::Blocks editor color theme like this?:

I mean with that like colorize #define and #include macros?
Thanks.

oBFusCATed

Nope. I think that Sublime Text has semantic highlight support, cb doesn't.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ollydbg

Quote from: kashamalasha on February 27, 2015, 10:49:59 PM
...
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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

kashamalasha

Now I can colorize it kind of that:

You can see that #define and #include always colorize whole row behind them.
Is it possible to split words within it?

scarphin


Alpha

Quote from: scarphin on February 28, 2015, 10:33:36 PM
As already answered before, no.
Not exactly, I think, though it would require a source edit.  Scintilla has a lexer setting "styling.within.preprocessor".