- Status Closed
- Percent Complete
- Task Type Feature Request
- Category Enhanced Syntax Highlighting
- Priority Very Low
- Reported Version 1.0.0.3247 Beta
- Due in Version Undecided
- Votes
- Private
Attached to Project: Codinion
Opened by wmj - 11.02.2016
Last edited by Martin Topfstedt - 07.03.2016
Opened by wmj - 11.02.2016
Last edited by Martin Topfstedt - 07.03.2016
FS#41 - Highlight pre-processor directives
Is it possible to highlight pre-processor directives such as the following:
#define VARIABLE
#region REGION DESCRIPTIONS HERE
#endregion
#if CONDITION
#elif CONDITION
#endif
#progma warning disable/restore CODE
#endprogma
Since those directives takes a line, is it possible to apply the style to the whole line rather than just the characters?
Closed by Martin Topfstedt
07.03.2016 17:15
Reason for closing: Implemented
Additional comments about closing: in 1.0.0.3610 Beta
07.03.2016 17:15
Reason for closing: Implemented
Additional comments about closing: in 1.0.0.3610 Beta
I will add preprocessor directives, but why the whole line? This would only make sense for the background color if the text is not long enough.
The whole line effect could look like this:
https://visualstudiogallery.msdn.microsoft.com/f6c01911-3c3f-4831-8e83-ea0d5d147964
The above extension highlights the whole region beautifully, however, it does not support VS 2015.
Ok, i now know what you mean. I had something similar in mind but forgot about it again ^^. It does not really fit into the current structures, therefore i will create something new.
The extension in https://visualstudiogallery.msdn.microsoft.com/f6c01911-3c3f-4831-8e83-ea0d5d147964
highlights only the two lines where the pre-processor pair locates (see screenshot on that page please).
I think it has its reasonable consideration.
For instance, if we define the #region and #endregion lines to red, highlighting only those two lines would be eye-catching, but highlighting lines inside them will have the whole screen in red, that could somewhat hurt our eyes. >_<
Or could it be an option to determine whether highlight lines within the region or not.
Hey, yes i saw that, i will make it an option.