Author Topic: [Symbol Coloring] Preprocessor Coloring in C/C++ language  (Read 1650 times)

ahkevin

  • Community Member
  • Posts: 87
  • Hero Points: 0
[Symbol Coloring] Preprocessor Coloring in C/C++ language
« on: November 14, 2020, 01:38:00 PM »
Does SEpro(v25) support setting the color of preprocessor content in C/C++ language? See PARAM_A,PARAM_B,PARAM_C,PARAM_D in attachment picture.

patrickkox

  • Senior Community Member
  • Posts: 137
  • Hero Points: 6
  • Debian GNU/Linux user
Re: [Symbol Coloring] Preprocessor Coloring in C/C++ language
« Reply #1 on: November 14, 2020, 04:52:23 PM »
Yes, slickedit allows to change the color of the Preprocessor directives.
This is a global setting and not a language specific one





LBCEi

  • Senior Community Member
  • Posts: 267
  • Hero Points: 21
Re: [Symbol Coloring] Preprocessor Coloring in C/C++ language
« Reply #2 on: November 14, 2020, 10:36:38 PM »
I think ahkevin's question is whether it is possible to color the macro names themselves, not the preprocessor directives (in this case, the constant macros PARAM_A, etc.).

As far as I know the answer is no.  Hopefully someone can prove me wrong.

patrickkox

  • Senior Community Member
  • Posts: 137
  • Hero Points: 6
  • Debian GNU/Linux user
Re: [Symbol Coloring] Preprocessor Coloring in C/C++ language
« Reply #3 on: November 15, 2020, 09:12:07 AM »
Ah,
Sorry for misunderstanding the question.

ahkevin

  • Community Member
  • Posts: 87
  • Hero Points: 0
Re: [Symbol Coloring] Preprocessor Coloring in C/C++ language
« Reply #4 on: November 15, 2020, 12:28:26 PM »
LBCEi understand my question accurately.
What's the answer to the question?

Dennis

  • Senior Community Member
  • Posts: 3992
  • Hero Points: 520
Re: [Symbol Coloring] Preprocessor Coloring in C/C++ language
« Reply #5 on: November 16, 2020, 03:21:44 PM »
To color symbols, you'll need to turn on Symbol Coloring:

        View > Symbol Coloring > Enable Symbol Coloring

To customize symbol colors.  The "Symbol Type" name for a C/C++ #define is "Preprocessor macro"

        View > Symbol Coloring > Customize..

To turn on Symbol Coloring for all files in a particular language mode:

        View > C/C++ View Options > [ check ] Symbol Coloring

I hope this helps, I am a little confused by this thread because you identified Symbol Coloring in the subject line, so I may be telling you things you already know, if so, please clarify or post a code sample and explain what is happening compared to what you expect to be happening.