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 #4192 is a reply to message #4097] Fri, 05 May 1995 00:00 Go to previous messageGo to previous message
davis is currently offline  davis
Messages: 15
Registered: March 1995
Junior Member
The latest version of JED (emacs-like editor) is now able to do color syntax
highlighting in its idl mode. It happens automatically when .pro files are
loaded. Below, I have appended `idl.sl' which sets up the syntax
highlighting. You can get the latest version of JED from
space.mit.edu:/pub/davis/jed. The latest version is 0.97-7.

----- idl.sl ------------
% idl mode color syntax highlighting. Requires 0.97-6 or later

create_syntax_table ("IDL");

define_syntax (";", "", '%', "IDL");
define_syntax ("([{", ")]}", '(', "IDL");
define_syntax ('"', '"', "IDL");
define_syntax ('\'', '\'', "IDL");
define_syntax ('\\', '\\', "IDL");
define_syntax ("0-9a-zA-Z_", 'w', "IDL"); % words
define_syntax ("-+0-9a-fA-F.xXL", '0', "IDL"); % Numbers
define_syntax (",.?:", ',', "IDL");
define_syntax ("%-+/&*=<>|!~^", '+', "IDL");
define_syntax ('@', '#', "IDL");

set_syntax_flags ("IDL", 1); % case insensitive

% These are IDL reserved words
() = define_keywords ("IDL", "doeqgegtifleltneofor", 2);
() = define_keywords ("IDL", "andendformodnotproxor", 3);
() = define_keywords ("IDL", "caseelsegotothen", 4);
() = define_keywords ("IDL", "beginendifuntilwhile", 5);
() = define_keywords ("IDL", "commonendforendrependwhirepeatreturn", 6);
() = define_keywords ("IDL", "endcaseendelse", 7);
() = define_keywords ("IDL", "endwhilefunctionon_error", 8);
() = define_keywords ("IDL", "ennrepeat", 9);
() = define_keywords ("IDL", "on_ioerror", 10);

define idl_mode ()
{
variable idl = "IDL";
setmode (idl, 0);
use_syntax_table (idl);
runhooks ("idl_mode_hook");
% This is called after the hook to give the hook a chance to load the
% abbrev table.
if (abbrev_table_p (idl)) use_abbrev_table (idl);
}
[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: Mon Dec 01 21:11:34 PST 2025

Total time taken to generate the page: 1.52165 seconds