Author Topic: Color theme SUNBURST from Sublime Text 3  (Read 7097 times)

Offline kashamalasha

  • Single posting newcomer
  • *
  • Posts: 6
Color theme SUNBURST from Sublime Text 3
« 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?:

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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Color theme SUNBURST from Sublime Text 3
« Reply #1 on: February 27, 2015, 11:03:26 pm »
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!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Color theme SUNBURST from Sublime Text 3
« Reply #2 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.
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.

Offline kashamalasha

  • Single posting newcomer
  • *
  • Posts: 6
Re: Color theme SUNBURST from Sublime Text 3
« Reply #3 on: February 28, 2015, 09:36:51 pm »
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?

Offline scarphin

  • Lives here!
  • ****
  • Posts: 640
Re: Color theme SUNBURST from Sublime Text 3
« Reply #4 on: February 28, 2015, 10:33:36 pm »
As already answered before, no.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Color theme SUNBURST from Sublime Text 3
« Reply #5 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".