Hi!

On Tue, Feb 15, 2011 at 04:51, caox <c...@lightpole.net> wrote:

>        I have used erlide for a while and I found the syntax highlighting
> of erlang editor didn't work correctly with chinese characters since a early
> release.
>        I plan to resolve this problem by myself, but I am a total newbie of
> eclipse plugin development. I have read some books about eclipse but it is
> still far from enough to understand the structure of erlide.
>

I don't know if you read the comments on similar questions from the past, I
repeat that to be sure we have the same starting point:
- Erlang source files should only be Latin-1 encoded, as that is the only
supported encoding by the tools (compiler, etc).
- In practice, the Erlang compiler doesn't care much about the encoding
inside strings and comments, so it's possible to use UTF-8 there. Printing
such strings works as expected only if the system uses UTF-8 enabled
consoles and there may be other places where you can get weird results.
- Eclipse is a lot more strict: a file type is either UTF-8 or Latin-1, you
can't have both. We chose as default the supported encoding, which I feel is
the only reasonable choice.

The Eclipse settings allow you to change the encoding for the content types:
go to window->preferences->general->content types->text->erlang source file,
change to UTF-8 and press "update" and "ok". This seems to work for me,
except that it makes non-ascii latin1 text look weird.


>        I am wondering if anyone could give me a hint where is the start
> point to fix the bug and how to build and test erlide from source code.
>

I don't see this as a bug. We are supporting the official encoding. We try
to do our best for other encodings, but the issues are really with Eclipse
itself and the mismatch between how it and Erlang handle the source code.


>        And is there any tutorial could help me understand how to design and
> develop an eclipse plugin like erlide, since I want to contribute some
> features to erlide later?
>

Have you read the wiki at https://github.com/erlide/erlide/wiki ? It's not
complete, but please let us know what you are missing or is badly explained
and we will improve the descriptions.

Regarding the erlide architecture, there is no good reference because it is
still evolving quite quickly. The source code is the guide, but feel free to
ask concrete questions here. We will answer as well as we can.

best regards,
Vlad
------------------------------------------------------------------------------
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

Reply via email to