Question to syntax highlighting

Tim Hubberstey myredirector at gmail.com
Fri Jun 19 02:32:53 CEST 2009


On 2009-06-18 07:57, 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

I've found that the easiest way to build a syntax pattern is to start with 
the pattern for a language that is similar to your target and modify it. In 
your case, a non-case-sensitive keyword-oriented language like Ada or VHDL 
is probably a good starting place.



More information about the Discuss mailing list