2011/2/15 caox <c...@lightpole.net> > > I have already configured my eclipse to use UTF-8 encoding, but I find the > syntax highlighting still doesn't work with non-ascii latin1 text. And the > editor will prompt an error when opening source files with more non-ascii > latin1 text. I have attached two screenshots which may help illustrating my > problem. >
What Erlang version do you use? Like I said, it works for me, with R14B01. Image attached. Earlier Erlang releases that didn't understand UTF-8 do not encode such strings properly, making them (in this case) 4 characters long instead of two. The lexical scanner is implemented in Erlang, so it reports wrong offsets in the file to begin/end the coloring. The exception when opening the file is because the last offset goes beyond the end of the file. regards, Vlad
<<attachment: chinese.png>>
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ Erlide-devel mailing list Erlide-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/erlide-devel