Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Syntax Highlighting
Syntax Highlighting [message #453055] Thu, 20 July 2006 11:54
Eclipse UserFriend
Hi,

case insensitive is ok by writing own WordRule class and overwrite the
WordRule's evaluate() method as

fBuffer.toString().toUpperCase()

I need to highlight substring of a word.

Eg: application is the keyword.

Now I am able to highlight the keyword in all cases.
I need to highlight application keyword in javaapplication word.


for(int i=0;i<searchKeyword1.size();i++)
{

if(fBuffer.toString().toUpperCase().indexOf(searchKeyword1.g et(i).toString()) >-1){
token= (IToken) fWords.get(searchKeyword1.get(i).toString());
break;
}
}
Previous Topic:Project
Next Topic:substring Syntax Highlighting
Goto Forum:
  


Current Time: Sun Apr 27 04:20:33 EDT 2025

Powered by FUDForum. Page generated in 0.04038 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top