Re: Question to syntax highlighting

Eddy De Greef <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Hi,

the pattern that you need is something like

(?i<step|and|all|your|other|keywords>)

Legend:
(?i...) -> case insensitive
<...> -> word boundaries
...|... -> or

Eddy

David, Patrick (I/EG-711) wrote:
> Hello out there,
> 
> I use nedit to work on input files for the software ABAQUS (a finite
> element solver).
> I want to teach my nedit to highlight different keywords in a
> non-case-sensitive way. For example the words "step" shall be
> highlighted independet of upper or lower cases. So "Step" is also a
> valid keyword as "step" or "STEP" or "sTep" or ...
> 
> I am not very familiar with regex so I have my problems with it. Can you
> help me to build it? I hope for a simple solutions becaus my list of
> keywords is long... 
> 
> hfh
> Greetings from
> Patrick

-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.