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

Re: Simple syntax highlighting plugin in eclipse

1 reply
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
I'm all about that!  I'll see if I can whip something up quick.  The problem is going to be understanding the existing code enough to merge the two so the new highlighting would be a "fallback". 

On Mon, Mar 2, 2009 at 4:19 PM, Miles Sabin <miles@milessabin.com> wrote:
On Mon, Mar 2, 2009 at 9:14 PM, Josh Suereth <joshua.suereth@gmail.com> 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

--
Miles Sabin
tel:    +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype:  milessabin

mustaghattack
Joined: 2008-08-20,
User offline. Last seen 8 weeks 6 days ago.
Re: Simple syntax highlighting plugin in eclipse


On Tue, Mar 3, 2009 at 9:59 AM, Bruno Bieth <biethb@gmail.com> wrote:
@All : Thanks guys for your answers. Sounds promising.

@Ben : When I've got to edit a couple of scala files I don't want to :
1) Edit my .project file
2) Create an edit my .classpath file
3) Go into the preferences, enable / disable a couple of options
4) Find out the indentation does not work (it's using one single space, and using tab won't move the cursor)
5) Have to fill bug reports for things that do not work and wait for them to be fixed (I'm willing to fill bug reports for other things but not for that)

You are right that having an IDE with code completion, debugging and refactoring would be way better. Since this tool is not yet here, and like you said everyone agrees, I'm looking for a simpler but robust cross-platform alternative (I was happy with text mate before but I couldn't find any equivalent under linux).

Thanks, Bruno

On Tue, Mar 3, 2009 at 4:07 AM, Ben Hutchison <ben@playscapegames.com> wrote:
On Tue, Mar 3, 2009 at 7:02 AM, mustaghattack <biethb@gmail.com> wrote:
>
> 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.
>

Can you describe what you dont like or find difficult with the plugin?
It may well be fixable with less effort than creating a separate
cut-down plugin.

Ultimately, the plugin is trying to provide the best environment in
which to work with Scala code, from casual use to read a single source
file through to developing, running and debugging large projects.  If
it was "good enough", you presumably wouldn't need to fall back to
something more basic. (note: everyone agrees it isn't quite there just
yet.)

-Ben


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