Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Case Insensitive Syntax Highlighting
Case Insensitive Syntax Highlighting [message #277896] Sat, 18 December 2004 13:34 Go to next message
Eclipse UserFriend
Originally posted by: anthony.whitford.com

I am writing a plug-in for a case-insensitive language (like SQL). The code
samples that I am working with don't really show how I can make a
case-insensitive word rule.

The code sample from JDG2E simply specifies each keyword in both upper and
lower case for the WordRule. This means that "SELECT" and "select" will be
highlighted, but "Select" and "SeLeCt" should also be a match because SQL is
a case insensitive language.

Can anyone point me in the right direction for the best way to add case
insensitive syntax highlighting?

Thanks!
Re: Case Insensitive Syntax Highlighting [message #277903 is a reply to message #277896] Sat, 18 December 2004 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bert.visi.com

In news:cq1t88$odc$1@www.eclipse.org "Anthony Whitford"
<anthony@whitford.com> wrote:

>
> Can anyone point me in the right direction for the best way to add case
> insensitive syntax highlighting?

Dunno about "best way", but I simply implemented my own
"CaseInsensitiveWordRule" that otherwise worked just like "WordRule".

--
Bert Hyman St. Paul, MN bert@visi.com
Re: Case Insensitive Syntax Highlighting [message #277907 is a reply to message #277896] Sat, 18 December 2004 16:45 Go to previous message
Eclipse UserFriend
Originally posted by: rob.watkins.blueyonder.co.uk

Anthony Whitford wrote:
>
> Can anyone point me in the right direction for the best way to add case
> insensitive syntax highlighting?
>
> Thanks!
>
>

I posted a solution on how to do this a few days ago. See my replies
under "[Syntax Highlighting] Colouring specific keywords??".

Cheers,

Rob Watkins
Previous Topic:deprecated
Next Topic:Example of integrating Proguard into the Plugin export process?
Goto Forum:
  


Current Time: Sat Jul 19 18:05:30 EDT 2025

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

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

Back to the top