|
Re: LPG editor text coloring [message #488407 is a reply to message #486246] |
Mon, 28 September 2009 14:42 |
Robert M. Fuhrer Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Brian Payton wrote:
> Is there a way to customize the colors used in the LPG editor? If so, I
> haven't found it (which means it could be made more obvious, such as
> putting it into the LPG preference page :-).
>
> In particular, I'd like to modify the color for "text that follows a $
> symbol", such as in these rules:
>
> tfield_type_datetime$DATE ::= DATE
> tfield_type_datetime$TIME ::= TIME
> tfield_type_datetime$TIMESTAMP ::= TIMESTAMP
>
> The text for $DATE, etc., is bright blue, which is a bit strong.
Hi,
No, there's no way for LPG IDE users to customize colors at the moment.
It wouldn't be hard to add - there's support in the prefspecs language
for color-valued preferences.
This is a great opportunity for someone to post a patch to add it. :-)
It would be a simple matter of adding an appropriate color preference
specification to the LPG.pfsp file, and then use that preference in the
TokenColorer class. Assuming, of course, that the suffixes like $DATE
are indeed distinct tokens (I don't recall at the moment).
Alternatively, you can post an enhancement request on Eclipse bugzilla.
Either way, thanks!
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Re: LPG editor text coloring [message #576651 is a reply to message #486246] |
Mon, 28 September 2009 14:42 |
Robert M. Fuhrer Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Brian Payton wrote:
> Is there a way to customize the colors used in the LPG editor? If so, I
> haven't found it (which means it could be made more obvious, such as
> putting it into the LPG preference page :-).
>
> In particular, I'd like to modify the color for "text that follows a $
> symbol", such as in these rules:
>
> tfield_type_datetime$DATE ::= DATE
> tfield_type_datetime$TIME ::= TIME
> tfield_type_datetime$TIMESTAMP ::= TIMESTAMP
>
> The text for $DATE, etc., is bright blue, which is a bit strong.
Hi,
No, there's no way for LPG IDE users to customize colors at the moment.
It wouldn't be hard to add - there's support in the prefspecs language
for color-valued preferences.
This is a great opportunity for someone to post a patch to add it. :-)
It would be a simple matter of adding an appropriate color preference
specification to the LPG.pfsp file, and then use that preference in the
TokenColorer class. Assuming, of course, that the suffixes like $DATE
are indeed distinct tokens (I don't recall at the moment).
Alternatively, you can post an enhancement request on Eclipse bugzilla.
Either way, thanks!
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02499 seconds