Hi,
within the syntax highlighting there is a "Disabled Code" attribute. I expected this to work on #if 0 sections. However, it does not work on these sections. What code sections are "Disabled Code"?
Is there any way I can highlight #if 0 or other undefined preprocessor sections?
What is "Disabled Code"?
-
- CodeLite Veteran
- Posts: 63
- Joined: Mon Apr 06, 2009 10:43 am
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: What is "Disabled Code"?
Your first assumption was correct. It used to work for #if 0 code sections, however there were several bugs with (incorrect coloring) so it was removed from the code, however this options was remained and is obsoleteDSP_Programmer wrote:Hi,
within the syntax highlighting there is a "Disabled Code" attribute. I expected this to work on #if 0 sections. However, it does not work on these sections. What code sections are "Disabled Code"?
Is there any way I can highlight #if 0 or other undefined preprocessor sections?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 63
- Joined: Mon Apr 06, 2009 10:43 am
- Contact:
Re: What is "Disabled Code"?
Are there any plans to re-program this feature or is parsing these sections this complicated?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: What is "Disabled Code"?
Its quite simple, but it seems like Scintilla is now coloring the document properly after the lexing is done - this is why this was dropped.DSP_Programmer wrote:or is parsing these sections this complicated?
I will give it another shot sometime in the future.
Eran
Make sure you have read the HOW TO POST thread