OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Programming => Topic started by: fvanzeveren on 2012.05.15, 22:57:54

Title: Watson Works Enhanced Editor (EPM) Syntax Hilighting
Post by: fvanzeveren on 2012.05.15, 22:57:54
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
Title: Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
Post by: RobertM on 2012.05.16, 01:38:10
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).
Title: Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
Post by: fvanzeveren on 2012.05.16, 07:55:21
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
Title: Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
Post by: Radek on 2012.05.16, 08:28:31
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.
Title: Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
Post by: ALT on 2012.05.16, 13:04:06
There are a few ways to activate syntax highlighting in EPM.  Any of the following will do it:

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
Title: Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
Post by: Andi on 2012.05.16, 13:24:05
@fvanzeveren: Maybe you want to have a look here - http://www.edm2.com/index.php/Category:Tools#Editors