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

Home » Public Forums » archive » Is there an emacs mode??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Is there an emacs mode?? [message #4198 is a reply to message #4097] Fri, 05 May 1995 00:00 Go to previous message
chase is currently offline  chase
Messages: 62
Registered: May 1993
Member
>>>> > "Tim" == Tim Patterson <patterso@astrosun.tn.cornell.edu> writes:
In article <3o8atn$2qr@newsstand.cit.cornell.edu> patterso@astrosun.tn.cornell.edu (Tim Patterson) writes:


Tim> Does anybody also know of a "hilite" setup for IDL in Emacs - one
Tim> that will show my wonderful program in pretty colours?

Here are the hilit patterns used by idl.el:

(defvar idl-hilit-patterns
'(("\\s ;.*" nil comment)
("^;.*" nil comment)
("\"[^\\\"\\\n]*\"" nil string)
("'[^'\\\n]*'" nil string)
("\\< \\(and\\|begin\\|case\\|common\\|do\\|else\\|end\\|endcase\\ |endelse\\|endfor\\|endif\\|endrep\\|endwhile\\|eq\\|for\\|f unction\\|ge\\|goto\\|gt\\|if\\|le\\|lt\\|mod\\|ne\\|not\\|o f\\|on_ioerror\\|or\\|pro\\|repeat\\|return\\|then\\|until\\ |while\\|xor\\)\\ >" nil keyword)
)
"List of patterns and associated font faces for hilit.el.
See hilit19.el for documentation. ")

The following code sets the above patterns for idl-mode buffers:

(if (featurep 'hilit19)
(hilit-set-mode-patterns 'idl-mode idl-hilit-patterns nil t))

Change 'idl-mode in the above to whatever mode you use for editing IDL
".pro" files. You would probably place the above in your .emacs file.

Chris
--
===============================
Bldg 24-E188
The Applied Physics Laboratory
The Johns Hopkins University
Laurel, MD 20723-6099
(301)953-6000 x8529
chris.chase@jhuapl.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reversing calculation order
Next Topic: Q: Efficient Memory handling and deallocation

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

Current Time: Sun Oct 12 12:35:37 PDT 2025

Total time taken to generate the page: 0.88131 seconds