Hello everybody
I installed openwatcom and just successfully build my first PM "Hello World" app in C
Cool... but I could not find where to enable the syntax highlighting...
Please, help me, as coding without syntax highlighting is not that comfortable.
Thanks for your help.
François
How about this?
http://www.med-editor.com/indexus.html
I prefer it over EPM... YMMV though (I'd tell you how to configure EPM but it's been ages... if you are dead set on it, I can see if I have time tonight - assuming someone else doesn't post the answer first).
Hello
I just found pmFTE on the hobbes repository and I think I will stick with this one for the time which looks way more powerful than Watsom Works :)
Regards
François
EPM is enough good :) I have completely reprogrammed EPM long ago and it has become the best line oriented editor I've ever seen :) Naturally, it has syntax highlighting for all code types I am producing. You can add additional ones. The only problem with EPM is that it is rather archaic - no "split view", only 16 colors, no hinting, no online spell checker and so on. If you want my version of EPM, send me an email at gerzhinATemailDOTcz and I will send you the E-files for investigation.
There are a few ways to activate syntax highlighting in EPM. Any of the following will do it:
- Add the 'toggle syntax highlighting' button to the toolbar (using the "buffet") and press that any time you want to activate highlighting for the current file.
- Open a command dialog (Ctrl+I) and enter the command 'toggle_parse 1 epmkwds.c' (for C files)
- Enable the 'REXX Profile' option under Misc. settings, and create a file PROFILE.ERX in the \OS2\APPS directory like the one shown below. This only works when opening a file in a new edit window.
- Upgrade to the NEPMD package.
Sample profile.erx:
/* PROFILE.ERX - EPM REXX Profile */
'extract /filename'
PARSE UPPER SOURCE . . me .
PARSE VAR me pathspec '\PROFILE.ERX' .
DO i = 1 TO filename.0
fullname = TRANSLATE( FILESPEC("NAME", filename.i ))
lastdot = LASTPOS(".", fullname )
IF lastdot > 0 THEN ext = SUBSTR( fullname, lastdot )
ELSE ext = ""
IF ( ext == "") | ( ext == ".TXT") | ( ext == ".DOC") | ( ext == ".1ST") | ( ext == ".SYS")
THEN LEAVE
SELECT
WHEN ext == ".CPP" | ext == ".H" | ext == ".HPP" THEN ext = ".C"
WHEN ext == ".ERX" THEN ext = ".CMD"
WHEN ext == ".HTML"| ext == ".SGS" THEN ext = ".HTM"
WHEN ext == ".JAVA" THEN ext = ".JAV"
WHEN ext == ".PRL" | ext == ".CGI" THEN ext = ".PL"
WHEN ext == ".DLG" THEN ext = ".RC"
WHEN ext == ".FOR" THEN ext = ".F90"
WHEN LEFT( fullname, 8 ) == "MAKEFILE" THEN ext = ".MAK"
OTHERWISE NOP
END
syntaxfile = pathspec'\EPMKWDS'ext
IF STREAM( syntaxfile, 'C', 'QUERY EXISTS') \= '' THEN 'toggle_parse 1' syntaxfile
END
@fvanzeveren: Maybe you want to have a look here - http://www.edm2.com/index.php/Category:Tools#Editors