Hi all,

I'm writing some simple stuff on top of ui.gadgets.editors to enable
code editing.
I added "syntax highlighting" using xmode, but it is very slow,
because the whole text is reparsed on each user input...
Now I'm trying to figure out what needs to be reparsed when the text is changed.

This link [1] says that one should keep track if the "initial states"
when the lexer returns to a positon equivalent to the beginning of the
buffer, but I don't know if that is valid/possible in xmode.

I also tried to understand jedit (since xmode is a port from jedit's
syntax highlighting engine) but could not find a document describing
jedit's internal aspects and couldn't get much help on #jedit.

Any help appreciated... I'm lost here :)

Thanks in advance,
-hugo

--
[1] http://ostermiller.org/syntax/editor.html

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to