comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » S: IDL- Language Mode for NEdit 5.0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
S: IDL- Language Mode for NEdit 5.0 [message #10704] Wed, 14 January 1998 00:00 Go to next message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
Hello,

is there anybody, who has written a nice language-code

for NEDIT 5.0 for Syntax highlighting?


Any Links?

TIA



Panther

--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
Re: S: IDL- Language Mode for NEdit 5.0 [message #10752 is a reply to message #10704] Tue, 20 January 1998 00:00 Go to previous message
Robert S. Hill is currently offline  Robert S. Hill
Messages: 11
Registered: January 1998
Junior Member
On Tue, 20 Jan 1998, Tony Papenfuss wrote:
> Robert S. Hill wrote:
>>
>> On 14 Jan 1998, HSR Sys-Admin wrote:
>>> Hello,
>>>
>>> is there anybody, who has written a nice language-code
>>>
>>> for NEDIT 5.0 for Syntax highlighting?

It turned out in the end to be not as hard as I had thought. Once you
figure out how to -create- a new language mode using the menus, you can
just start using it and update it incrementally to fix things that you
have forgotten.

One suggestion I cribbed from the Fortran mode is to make the keyword
regexps FOR|[Ff]or ... etc. to get all reasonable capitalizations.
Otherwise, what I came up with is (naturally) quite similar to what others
have posted.

--
Robert.S.Hill.1@gsfc.nasa.gov Phone: 301-286-3624
Raytheon STX / Code 681, NASA/GSFC, Greenbelt, MD 20771
Re: S: IDL- Language Mode for NEdit 5.0 [message #10755 is a reply to message #10704] Tue, 20 January 1998 00:00 Go to previous message
Tony Papenfuss is currently offline  Tony Papenfuss
Messages: 1
Registered: January 1998
Junior Member
Robert S. Hill wrote:
>
> On 14 Jan 1998, HSR Sys-Admin wrote:
>> Hello,
>>
>> is there anybody, who has written a nice language-code
>>
>> for NEDIT 5.0 for Syntax highlighting?
>
> I'm interested in this, too. I took a crack at doing it myself, but
> realized quickly that I don't have time.
>
> --
> Robert.S.Hill.1@gsfc.nasa.gov Phone: 301-286-3624
> Raytheon STX / Code 681, NASA/GSFC, Greenbelt, MD 20771

This remains a work in progress:

IDL:1:0{\n\
Data:"<(byte|fix|long|float|double|complex|string)>":::Keyword::\n\
Functions:"<(min|max)>":::Keyword::\n\

Keywords:"<(where|print|reform|call_external|common|tv|tvscl) >":::Keyword::\n\
Flow
control:"<(for|do|endfor|if|then|endif|else|endelse|begin)> ":::Flow
control::\n\

Logicals:"<(eq|EQ|ne|NE|lt|LT|le|LE|gt|GT|ge|GE|and|AND|or|OR) >":::Logicals::\n\
Comment:";":"$"::Comment::\n\
String:"'":"'"::String::\n\
String 1:"""":""""::String1::\n\
Brackets:"[{()}]":::Brackets::\n\
Numeric
const:"< ((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E) (\\+|-)?[0-9]+)?)(l|L|d|D|b)? >\n\
":::Numeric Const::\n\
Procedures:"^[(pro|PRO|function|FUNCTION)*!]":"$"::Subroutine::\n\
Procedure flow:"<(return|RETURN|stop|STOP|end|END)>":::Subroutine::\n\

--
Tony Papenfuss
EMAIL: tonyp@resmel.bhp.com.au
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL5: Bug in MAP_SET (Rot. cylin.)
Next Topic: Re: Object Blues

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:01:21 PDT 2025

Total time taken to generate the page: 0.00784 seconds