Separate highlighting within a highlighted area

Syntax highlighting, code folding, brace matching, code indenting, and function list

Separate highlighting within a highlighted area

Postby DaveHarper » Sun Oct 24, 2010 2:14 pm

[UltraEdit v15.20.0.1022 on a Windows 7 64-bit platform]

I have been searching through the various syntax highlighting posts/tutorials/etc. but have come up empty on what I'm trying to do. The short version is: "Is it possible to highlight sections of text within a comment using a different color?"

Basically, when I write code (C & JavaScript) I precede code blocks with (sometimes lengthy) comment sections that describe what I am doing and why. Occasionally, I also document why a particular approach was taken instead of another approach. Important considerations that went into making a particular decision are identified with the keyword "NOTE: ". While this is usually in a paragraph by itself, it is still sometimes easy to overlook. An ideal eye-catcher would be if the bulk of the comment section could be in green (as it currently is) but the word "NOTE:" would stand out in red. Is such a thing possible and, if so, how would I go about it?

Thanks,
Dave
DaveHarper
Newbie
 
Posts: 2
Joined: Sun Oct 24, 2010 1:44 pm

Re: Separate highlighting within a highlighted area

Postby mjcarman » Mon Oct 25, 2010 8:31 am

UE supports embedded syntax highlighting for HTML (e.g. Javascript sections) but in general it's not possible. I suggest sending a feature request to IDM. I requested this feature a while back. The more people that request it the more likely it is to make it into a future version.
User avatar
mjcarman
Power User
Power User
 
Posts: 125
Joined: Thu Feb 10, 2005 12:00 am

Re: Separate highlighting within a highlighted area

Postby DaveHarper » Mon Oct 25, 2010 9:13 am

Thanks for the reply - a feature request has been submitted. I'm a little surprised they don't have something like this already - when an entire comment block is highlighted with a single color it might as well not be highlighted at all.

Dave
DaveHarper
Newbie
 
Posts: 2
Joined: Sun Oct 24, 2010 1:44 pm


Return to Syntax Highlighting