- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
ISO-8859-1 as source file encoding and syntax Highlighting.
Thu, 2009-03-26, 12:40
I have long time problem in Scala Eclipse plugin.
If I open scala source file syntax highlighting is lost.
After editing and saving highlighting comes back.
Today I noticed how this problem is related to source files encoding and
comments.
Traditionally my source files are in ISO-8859-1.
Let’s create simple class.
class Simple {
var alfa = 300 // Comment
}
Save and reopen. Highlighting is OK.
Now change comment.
class Simple {
var alfa = 300 // Comment öüä
}
Save and reopen. Highlighting is LOST.
If I use UTF-8 as source file encoding Highlighting does not disappear even
with ‘ÖÜÄ’ characters.
So, is it possible to use ISO-8859-1 as source file encoding without losing
Highlighting ?
Current configuration:
Eclipse SDK Version: 3.4.2
Build id: M20090211-1700
ch.epfl.lamp.sdt_2.8.0.r17382-b20090326023419.zip
Thanks
Toivo
Thu, 2009-03-26, 13:57
#2
Re: ISO-8859-1 as source file encoding and syntax Highlighting
Ticket #1827
Newest plugin is 2.8 based.
I used so far 2.7.3 but plugin problems slow down development.
How stable is current 2.8 compiler and library’s?
Can I use them for production instead of 2.7.3?
Thanks
Toivo
On Thu, Mar 26, 2009 at 11:40 AM, toivo wrote:
> Today I noticed how this problem is related to source files encoding and
> comments.
Thanks for looking into this!
Could you create a ticket in the Scala Trac for this with the
component set to "Eclipse plugin".
Thanks ...
Miles
--
Miles Sabin
tel: +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype: milessabin