Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Syntax Highlighting
Syntax Highlighting [message #453055] Thu, 20 July 2006 15:54
SarayuGeethanjali is currently offline SarayuGeethanjaliFriend
Messages: 7
Registered: July 2009
Junior Member
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: Fri Oct 04 00:15:48 GMT 2024

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

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

Back to the top