Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Help: editor syntax coloring

Hi,

This is very strange, because DLTK not provide tools for syntax highlighting, and can't influence to it.

As I understand you use WordRule and pass custom IWordDetector to it.
Please check what space characters are not passed as one of keywords.
Please refer to our IDE implementations code (TclCodeScanner TclWordDetector classes from org.eclipse.dltk.tcl.ui plugin).

Best regards,
Andrei Sobolev.


Hi, I have defined my own keywords with some special keywords such as "%RWF" or "6-31+g(d)". And I finished wordPart(character c) function as follows:
    public boolean isWordPart(char c) {
   for (int i = 0; i < Keywords.length; i++)
         if (((String) Keywords[i]).indexOf(c) != -1)
           return true;
      return false;
    }
I found that program sees space character as a part of keyword , so in the editor I must insert a comma or semicolon to finish the keyword and only this way keyword can be colored. But if I do not use dltk it is good performing what I want . How can I deal with this problem in dltk. ------------------------------------------------------------------------
chenshl
------------------------------------------------------------------------

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev



Back to the top