Skip to main content

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

 
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

Back to the top