Discussion:
Highlghting "style file" in Enscript for m2 reserved words?
(too old to reply)
Carl Glassberg
2013-02-18 21:15:17 UTC
Permalink
Hello everyone:

GNU Enscript doesn't have a file to highlight Modula-2 keywords,
although a Pascal file is included.

Apparently, you need to run a Linux "build-re" command on the list of
Modula-2 reserved words.

Does anyone know how to build this file for Enscript?

Thanks in advance,

Carl
Carl Glassberg
2013-02-18 22:25:49 UTC
Permalink
Hello:

Not to answer my own question but I found out that Gnu Enscript
includes "enscript-el"
(Emacs help commands for enscript.
Copyright (c) 1997 Markku Rossi.
Author: Markku Rossi <***@iki.fi>)
for use with Emacs and there is a function there:

defun build-re (words &optional case-insensitive)
"Build an optimized regular expression from list WORDS which can
contain symbols and strings. Optional second argument CASE-
INSENSITIVE specifies
whatever the created regular expression should match its keywords case
insensitively or not. The default is case sensitive matching. If the
function is enclosed in C-comments, it inserts the generated regular
expression after the closing \"*/\" sequence, otherwise it returns
regular expression as a string."
Post by Carl Glassberg
GNU Enscript doesn't have a file to highlight Modula-2 keywords,
although a Pascal file is included.
Apparently, you need to run a Linux "build-re" command on the list of
Modula-2 reserved words.
Does anyone know how to build this file for Enscript?
Thanks in advance,
Carl
Nemo
2013-02-20 18:30:00 UTC
Permalink
Post by Carl Glassberg
GNU Enscript doesn't have a file to highlight Modula-2 keywords,
although a Pascal file is included.
I have never used enscript and cannot help you there. But I am curious
as why to use it over a2ps? The latter has modula-2 support.

N.
d***@gmail.com
2013-11-27 02:12:33 UTC
Permalink
Post by Nemo
Post by Carl Glassberg
GNU Enscript doesn't have a file to highlight Modula-2 keywords,
although a Pascal file is included.
I have never used enscript and cannot help you there. But I am curious
as why to use it over a2ps? The latter has modula-2 support.
N.
enscript supports an "ansi" mode ... think "color cat"

Loading...