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


  i think you need to add a rule for the space character as well in order for it not to do this, but i'm not 100% sure.
 
On Sat, Jul 12, 2008 at 8:58 AM, chenshl <chenshl07@xxxxxxxxx> wrote:
 
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




--
-jae

Back to the top