Bug 42550 - [syntax highlighting] Syntax highlighting Based Upon Regexp Pattern
Summary: [syntax highlighting] Syntax highlighting Based Upon Regexp Pattern
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 30531 112094 204828 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-04 12:58 EDT by Greg Felice CLA
Modified: 2019-09-24 13:58 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Felice CLA 2003-09-04 12:58:52 EDT
Hello, 

In tricky sections of code, a great deal of the volumne is log messages. It
would be fantastic to have the ability to do a regexp filter of, for example,
"log.debug", and present that line up to it's terminating semicolon in a
different format. (e.g., Grey italics, or whatever). I think this would greatly
increase the readability of code for most folks. 

Regards, 

Greg Felice
Comment 1 Dani Megert CLA 2003-09-18 03:51:33 EDT
To me this request sounds like a syntax coloring feature and not code formatting. 

Do you want to format the code or just display it in a different way?
Comment 2 Dani Megert CLA 2003-09-22 04:23:53 EDT
Waiting for more input.
Comment 3 Greg Felice CLA 2003-09-22 12:40:10 EDT

Hello,

I think my last comments got lost by the system.
Sorry.

I was thinking that this feature, as you mentioned, does not really
involve formatting as in indentation, but onyl font style (color, italic,
bold). The feature would allow you to define a regexp to match against
(e.g. m/log.debug/), and the font style to be applied to that match.

Again, the rationale for for this is greying out and italicizing huge
volumes of debug code that have nothing to do with the logic of a method.

Thanks

Greg Felice
Comment 4 Greg Felice CLA 2003-09-22 12:46:10 EDT
More details on this: 

The typical regexp to be used in this situation would be 

m/log.debug*;/g

or something like that, where I'm matching on log.debug and all chars up to the
terminating semicolon. The regexp/font capability would then display the matched
line in grey italics, or whatever. 

Thanks

Greg Felice
Comment 5 Greg Felice CLA 2003-09-22 12:47:21 EDT
Changed to reopened.
Comment 6 Dani Megert CLA 2003-09-22 12:51:47 EDT
Adapted summary.
Comment 7 Dani Megert CLA 2003-09-24 03:43:39 EDT
*** Bug 30531 has been marked as a duplicate of this bug. ***
Comment 8 Dani Megert CLA 2005-10-10 05:44:11 EDT
*** Bug 112094 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2007-10-04 02:51:48 EDT
*** Bug 204828 has been marked as a duplicate of this bug. ***
Comment 10 Lars Vogel CLA 2019-09-24 13:58:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.