This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Simple syntax highlighting plugin in eclipse

3 replies
mustaghattack
Joined: 2008-08-20,
User offline. Last seen 8 weeks 6 days ago.

Does anyone know how to have syntax highlighting in eclipse for scala code
without any other features (code completion, refactoring ...).
Ideally I'd like to add a site upload, click Install and be able to display
scala code in eclipse with colors.

I'm running eclipse 3.4 under linux x86_64 (ubuntu 8.10).

I've tried the official eclipse plugin but there are too many steps to set
up a project and I still don't like it.

I've also tried general purpose syntax highlighting plugins, but nothing has
worked out of the box :
- color editor, as described here
http://www.codecommit.com/blog/eclipse/general-purpose-editor-within-ecl...
- eclipsecolorer : http://colorer.sourceforge.net/eclipsecolorer/

I've played with gedit, but the file browser isn't that great.

I'm going to play with jEdit but I'd like to stick to eclipse if I could.

Any suggestion for a robust simple highlighting solution that integrates
seamlessly with eclipse ?

Thanks, Bruno

daniel
Joined: 2008-08-20,
User offline. Last seen 44 weeks 15 hours ago.
Re: Simple syntax highlighting plugin in eclipse

You could probably add the jEdit Scala mode to the plugin described on
Code Commit by unjarring, placing the XML file in the appropriate
directory, editing the catalog file and then re-jarring the result.
However, I'm not even sure if the plugin is compatible with the latest
version of Eclipse.

Daniel

On Mar 2, 2009, at 2:02 PM, mustaghattack wrote:

>
> Does anyone know how to have syntax highlighting in eclipse for
> scala code
> without any other features (code completion, refactoring ...).
> Ideally I'd like to add a site upload, click Install and be able to
> display
> scala code in eclipse with colors.
>
> I'm running eclipse 3.4 under linux x86_64 (ubuntu 8.10).
>
> I've tried the official eclipse plugin but there are too many steps
> to set
> up a project and I still don't like it.
>
> I've also tried general purpose syntax highlighting plugins, but
> nothing has
> worked out of the box :
> - color editor, as described here
> http://www.codecommit.com/blog/eclipse/general-purpose-editor-within-ecl...
> - eclipsecolorer : http://colorer.sourceforge.net/eclipsecolorer/
>
> I've played with gedit, but the file browser isn't that great.
>
> I'm going to play with jEdit but I'd like to stick to eclipse if I
> could.
>
> Any suggestion for a robust simple highlighting solution that
> integrates
> seamlessly with eclipse ?
>
> Thanks, Bruno

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Simple syntax highlighting plugin in eclipse
Making a simple syntax highlighting plugin that works off of tokens (or regular expressions) is fairly simple in eclipse.   I believe the PDE's sample XML plugin project demonstrates this.  If you need any help setting this up, I can point you to the appropriate resources (once I find them agian).


On Mon, Mar 2, 2009 at 3:12 PM, Daniel Spiewak <djspiewak@gmail.com> wrote:
You could probably add the jEdit Scala mode to the plugin described on Code Commit by unjarring, placing the XML file in the appropriate directory, editing the catalog file and then re-jarring the result.  However, I'm not even sure if the plugin is compatible with the latest version of Eclipse.

Daniel

On Mar 2, 2009, at 2:02 PM, mustaghattack <biethb@gmail.com> wrote:


Does anyone know how to have syntax highlighting in eclipse for scala code
without any other features (code completion, refactoring ...).
Ideally I'd like to add a site upload, click Install and be able to display
scala code in eclipse with colors.

I'm running eclipse 3.4 under linux x86_64 (ubuntu 8.10).

I've tried the official eclipse plugin but there are too many steps to set
up a project and I still don't like it.

I've also tried general purpose syntax highlighting plugins, but nothing has
worked out of the box :
- color editor, as described here
http://www.codecommit.com/blog/eclipse/general-purpose-editor-within-eclipse
- eclipsecolorer : http://colorer.sourceforge.net/eclipsecolorer/

I've played with gedit, but the file browser isn't that great.

I'm going to play with jEdit but I'd like to stick to eclipse if I could.

Any suggestion for a robust simple highlighting solution that integrates
seamlessly with eclipse ?

Thanks, Bruno
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Simple syntax highlighting plugin in eclipse

On Mon, Mar 2, 2009 at 9:14 PM, Josh Suereth wrote:
> Making a simple syntax highlighting plugin that works off of tokens (or
> regular expressions) is fairly simple in eclipse.   I believe the PDE's
> sample XML plugin project demonstrates this.  If you need any help setting
> this up, I can point you to the appropriate resources (once I find them
> agian).

It'd be good to have this rolled into the main plugin as a fallback
when the scalac-driven highlighting fails ...

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland