- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
eclipse plugin color scheme
Fri, 2009-10-16, 14:00
Hi,
I'm attempting to change the scala color scheme to be something a little
easier to read. I see that there are some options to do so in the eclipse
plugin, but they never take effect. Is this a work in progress? or am I
doing something wrong?
Thanks.
Fri, 2009-10-16, 15:37
#2
Re: eclipse plugin color scheme
On Fri, Oct 16, 2009 at 8:04 AM, Miles Sabin <miles@milessabin.com> wrote:
Works poorly for inline Symbol syntax. The lack of closing ' confuses Eclipse.
On Fri, Oct 16, 2009 at 2:00 PM, justin greene
<nephesh.chifire@gmail.com> wrote:
> I'm attempting to change the scala color scheme to be something a little
> easier to read. I see that there are some options to do so in the eclipse
> plugin, but they never take effect. Is this a work in progress? or am I
> doing something wrong?
If you're on trunk then for the moment the Scala editor shares its
colour configuration with the Java editor (because now they're one and
the same).
Works poorly for inline Symbol syntax. The lack of closing ' confuses Eclipse.
Fri, 2009-10-16, 17:27
#3
Re: eclipse plugin color scheme
> Works poorly for inline Symbol syntax. The lack of closing ' confuses
Eclipse.
The coloring doesn't work for nested comments either. :)
While it is nice to have the same colors and formatter settings for both
Java and Scala, this is certainly not flexible enough if you want or
need different settings.
The ``officially recommended" way to format Scala sources is to use two
blanks for indentions. Extempore: I was a bit surprised to see such a
recommendation even exists because I believe stuff like this should be
left everyone's personal choice. I dislike blank indentions for several
reasons. In my customer's company everybody *must* use four-blank
indentions. As I said, I don't like it. I don't think it is a problem if
several people working on the same project follow their individual
styles---rigidly prescribing humans how to format this and that feels a
bit like a fascist thing to me ... If you look into to the ``wild"
sources of `rt.jar' you can tell where a dozen of different people
worked on the same file, still Sun has set a de-facto coding standard
without being too regulative about the details. (On a side note, I
think that the Spring sources are among the most beautiful Java sources
under God's sun.)
That said, I don't think I will follow Martin's recommendation (if it's
Martin's, as I suppose) but stick with tabs.
But what if I wanted to use tabs for Java sources and blanks for Scala
sources? Miles?
---Ph.
Fri, 2009-10-16, 17:47
#4
Re: eclipse plugin color scheme
On Fri, Oct 16, 2009 at 5:18 PM, Philip Köster wrote:
> The coloring doesn't work for nested comments either. :)
Please open a Trac ticket for that ... thanks.
Cheers,
Miles
Fri, 2009-10-16, 23:37
#5
Re: eclipse plugin color scheme
When I change the java syntax for "Other" it affects most scala code. If I
change more specific options it does not affect scala code. Is there any
way to get different coloring?
For instance:
def main(args: Array[String])
"String" should be a different color than the rest. The only coloring I'm
getting is on keywords and Object types, and even those aren't following the
java colors I set.
Thanks.
Miles Sabin wrote:
>
> On Fri, Oct 16, 2009 at 2:00 PM, justin greene
> wrote:
>> I'm attempting to change the scala color scheme to be something a little
>> easier to read. I see that there are some options to do so in the
>> eclipse
>> plugin, but they never take effect. Is this a work in progress? or am I
>> doing something wrong?
>
> If you're on trunk then for the moment the Scala editor shares its
> colour configuration with the Java editor (because now they're one and
> the same).
>
> Cheers,
>
>
> Miles
>
Sun, 2010-02-07, 07:57
#6
Re: eclipse plugin color scheme
Have you guys find out fix?
justin greene wrote:
>
> Hi,
>
> I'm attempting to change the scala color scheme to be something a little
> easier to read. I see that there are some options to do so in the eclipse
> plugin, but they never take effect. Is this a work in progress? or am I
> doing something wrong?
>
> Thanks.
>
> edit: I should probably mention that I'm using the nightly build.
>
On Fri, Oct 16, 2009 at 2:00 PM, justin greene
wrote:
> I'm attempting to change the scala color scheme to be something a little
> easier to read. I see that there are some options to do so in the eclipse
> plugin, but they never take effect. Is this a work in progress? or am I
> doing something wrong?
If you're on trunk then for the moment the Scala editor shares its
colour configuration with the Java editor (because now they're one and
the same).
Cheers,
Miles