| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Watcom C++ 10.6 |
On Friday, 97/01/17, Jason Hendriks wrote to David Noon about "Watcom
C++ 10.6" as follows:
JH> epm wasn't in the path.
Hi Jason,
OK, that explains all.
JH> six are open at once. But if it had colour syntax highlighting I
JH> wouldn't complain.
JH> Any idea how to get that going?
Certainly.
You will need EPM version 6, as supplied with Merlin, on the Dev Con
CD or from Hobbes. This should include a file called EPMKWDS.C or
EPMKWDS.CPP. [Actually, I don't think Merlin includes the full E
Toolkit, but the Dev Con and Hobbes versions do.]
Customise the toolbar so that the "syntax hi-lite" button appears and
then click it
--OR--
Customise the MYCNF.E module to be similar to this:
========================================================================
; Note: This is a *sample* MYCNF.E, to guide you in setting up your own
; configuration file. You should not blindly copy this MYCNF.SMP
; file to a MYCNF.E file; you might not like the way the defaults
; are modified by this file. In order to prevent you from copying
; this directly, we include the following line which will cause an
; error if compiled:
; Note to EPM users: EPMGCNF.SMP is the MYCNF.E used to build the
; OS/2 2.0 Enhanced Editor. OS2TOOLS.CFG is the MYCNF.E used to
; build the .ex files shipped with the EPM package internally.
; Now, on with the examples.
set insert_state 1 -- I prefer to have insert initially on
const
AUTOSAVE_PATH = 'I:\TEMP\' -- Put AUTOSAVE files here.
ENTER_ACTION = 'ADDATEND' -- I don't like Enter to insert a line;
C_ENTER_ACTION = 'ADDLINE' -- I prefer Ctrl-enter to do that.
MY_EXPAND_ON = 0 -- Suppress syntax assistance in all languages
E_KEYWORD_HIGHLIGHTING = 1 -- Automatically switch on syntax
highlight for E.
C_KEYWORD_HIGHLIGHTING = 1 -- Automatically switch on syntax
highlight for C/C++.
REXX_KEYWORD_HIGHLIGHTING = 1 -- Automatically switch on syntax
highlight for REXX.
ASSIST_TRIGGER = 'C_ENTER' -- Set to what I use to enter a line.
SMARTFILE = 1 -- If no changes, File key just quits.
SMARTQUIT = 1 -- If changes, Quit says "Y, N
or File".
JHwindow = 1 -- Zoomed window in messy mode looks tiled.
WANT_EPM_SHELL = 1 -- Permit shell sessions to test REXX programs
WANT_SEARCH_PATH = 1 -- I include this routine...
WANT_GET_ENV = 1 -- ... and this one for EP command.
WANT_KEYWORD_HELP = 1 -- While KWIKINF is broken use EPM
compile if EVERSION >= 5 & EVERSION < 6
EXTRA_EX = 1 -- Too much stuff to fit in one .EX file;
compile endif -- compile *both* EPM and EXTRA.
include 'MAXIMIZE.E' -- Define a maximize command
/* Initializations... */
my_messy = 0 -- Ensure windows are not messy, or whatever.
my_default_search_options='C' -- I prefer default to be ignore case.
my_default_save_options='/S' -- Strip trailing spaces when saving.
; Overrides for the standard colors:
compile if defined(BLACK) -- Only define if COLORS.E has been included; MYCNF
-- may be included by many stand-alone .E files that
-- need to set something the way that it's set when
-- E.E is compiled, and they might not need to
-- include COLORS.E.
define
STATUSCOLOR = Green + WhiteB
FILENAMECOLOR = Yellow + GreenB
COMMANDCOLOR = Light_Cyan+MagentaB
BOXCOLOR = Light_Green
CURSORCOLOR = Yellow + MagentaB + Blink
MARKCOLOR = White + Light_BlueB
MODIFIED_FILENAMECOLOR = Red + GreenB
HIGHLIGHT_COLOR = Yellow + Magentab -- hilight Located strings.
compile endif
========================================================================
Then recompile EPM.EX (note: not EXE, but EX) from EPM.E using the
ETPM compiler.
The line
C_KEYWORD_HIGHLIGHTING = 1 -- Automatically switch on syntax
highlight for C/C++.
does the job for automatic keyword highlighting.
Note that I have a MAXIMIZE.E module being included, which causes EPM
to maximise on start-up. If you want a copy of that too, just ask. [It
might even be included in later cuts of EPM, since I think Larry
Margolis wrote it.]
Indeed, you now have an _opportunity_ [as we used to say in EDS] to
learn to program in the E language. It makes the EPM editor quite
worthwhile, albeit with some effort.
Regards
Dave
* KWQ/2 1.2i * Sure, when... OINK FLAP, OINK FLAP... Well, I'll be damned.
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)SEEN-BY: 50/99 54/99 270/101 620/243 625/110 160 711/401 430 808 934 712/311 SEEN-BY: 712/407 505 506 517 623 624 704 713/317 800/1 @PATH: 440/4 141/209 270/101 712/624 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.