• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Watson Works Enhanced Editor (EPM) Syntax Hilighting

Started by fvanzeveren, 2012.05.15, 22:57:54

Previous topic - Next topic

fvanzeveren

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

RobertM

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).


|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


fvanzeveren

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

Radek

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.

ALT

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

Andi