Article View: comp.os.os2.apps
Article #4503Re: Keyword Highlighting in EPM
From: Larry Margolis
Date: Fri, 17 Jan 1997 00:00
Date: Fri, 17 Jan 1997 00:00
55 lines
2946 bytes
2946 bytes
In <1997Jan15.154338.25466@levels.unisa.edu.au>, GEORGE.WILEY@levels.unisa.edu.au (George Wiley, School of Computer & Information Science, University of South Australia) writes:
>
>In the version of EPM included in Merlin, the product overview mentions that
>EPM can highlight keywords in a C program and the /OS2/APPS directory even
>includes a file of keyword definitions for C and other supported language but
>there is ABSOLUTELY NO HELP to tell you who this facility is invoked.
>
>Can someone who knows please help?
From the README.EPM included with the EPMBBS package (available
for anonymous FTP from Hobbes.nmsu.edu (in /os2/editors),
ftp.leo.org, et al.):
EPM Keyword Highlighting support
Keyword files are included for C, E, HTML, IPF, Java, Perl, Rexx, RC files,
TeX, LaTeX, and Script.
To turn on keyword highlighting for a C file, enter the command:
toggle_parse 1 epmkwds.c
For the other file types, substitute epmkwds.e, epmkwds.cmd, epmkwds.rc,
epmkwds.tex or epmkwds.scr, as appropriate. In addition, there is
a KwdHilit entry on the toolbar buffet which you can drag to the copy of
your toolbar in the buffet dialog to make it easier to toggle keyword
highlighting on and off.
You can edit the epmkwds files to add and delete strings and to change
the highlighting. The distributed files were created for people using
black on white text colors, and may look strange with a different
scheme. EPMWKDS.C contains the current documentation.
If you like this, and want it turned on automatically, you can add to
your MYCNF.E any of the following, and then recompile the macros.
const
C_KEYWORD_HIGHLIGHTING = 1
E_KEYWORD_HIGHLIGHTING = 1
REXX_KEYWORD_HIGHLIGHTING = 1
RC_KEYWORD_HIGHLIGHTING = 1
SCRIPT_KEYWORD_HIGHLIGHTING = 1
As the comments in EPMKWDS.C indicate, the file is huge because the
entire OS/2 2.1 toolkit is included. Removing parts you don't need
highlighted will speed up performance.
------------------------ end extract ------------------------------
Note that you'll need to get the EPMBBS package if you want to
recompile the macros. Note also that not all the keyword files
mentioned above ship with Warp 4; they *are* all included with
the EPMBBS package. (The missing ones are the ones which were
written by those outside IBM.)
--
Larry Margolis, margoli@ibm.net
Technical Details
Message-ID:
<5bn14h$iau$1@news-s01.ca.us.ibm.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<1997Jan15.154338.25466@levels.unisa.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a752,d5af5340ccb09ed2 X-Google-Attributes: gid10a752,public X-Google-Thread: 112d6c,d5af5340ccb09ed2 X-Google-Attributes: gid112d6c,public From: margoli@ibm.net (Larry Margolis) Subject: Re: Keyword Highlighting in EPM Date: 1997/01/17 Message-ID: <5bn14h$iau$1@news-s01.ca.us.ibm.net> X-Deja-AN: 210365161 references: <1997Jan15.154338.25466@levels.unisa.edu.au> organization: The Village Waterbed reply-to: margoli@ibm.net newsgroups: comp.os.os2.apps,aus.computers.os2