Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » LPG editor text coloring
LPG editor text coloring [message #486246] Wed, 16 September 2009 21:13 Go to next message
Brian Payton is currently offline Brian PaytonFriend
Messages: 154
Registered: July 2009
Senior Member
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.

Brian Payton
SQL Tools Development
IBM Silicon Valley Laboratory
Re: LPG editor text coloring [message #488407 is a reply to message #486246] Mon, 28 September 2009 14:42 Go to previous messageGo to next message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
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 Go to previous messageGo to next message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
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)
icon5.gif  Re: LPG editor text coloring [message #646753 is a reply to message #576651] Thu, 30 December 2010 17:57 Go to previous messageGo to next message
Ken Walter is currently offline Ken WalterFriend
Messages: 13
Registered: February 2010
Junior Member
I don't see this feature added yet.
Where if the LPG.pfsp file?
I have searched my entire hard drive with no results.
Re: LPG editor text coloring [message #650667 is a reply to message #646753] Tue, 25 January 2011 22:40 Go to previous messageGo to next message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
On 12/30/10 12:57 PM, Ken Walter wrote:
> I don't see this feature added yet.

You're right, no one has gotten around to adding it yet.

> Where if the LPG.pfsp file? I have searched my entire hard drive with no results.

The LPG.pfsp file is in the plugin org.eclipse.imp.lpg.ide, in the folder src/org/eclipse/imp/lpg/preferences.

--
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 #664503 is a reply to message #486246] Sun, 10 April 2011 07:24 Go to previous message
Uwe Voigt is currently offline Uwe VoigtFriend
Messages: 10
Registered: July 2009
Junior Member
Have you ever tried the LPG(JikesPG) Editor from SourceForge (http://sourceforge.net/projects/jgedit/), it supports syntax coloring as well as adjustment of styles and colors.

I wrote it a couple of years ago, so it may be that LPG got new features that the editor not supports.

Uwe
(sorry for house advertising Wink )
Previous Topic:Proposed change to IParseController API
Next Topic:LPG and building IMP from source
Goto Forum:
  


Current Time: Thu Mar 28 17:37:09 GMT 2024

Powered by FUDForum. Page generated in 0.02499 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top