Author Topic: Watson Works Enhanced Editor (EPM) Syntax Hilighting  (Read 1387 times)

fvanzeveren

  • Newbie
  • *
  • Posts: 24
    • View Profile
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
« Last Edit: 2012.05.15, 22:44:25 by fvanzeveren »

RobertM

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2034
    • View Profile
    • A.I.BuiltPC - using OS/2 Warp Server & eComStation for Custom Web and Database Solutions
Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
« Reply #1 on: 2012.05.16, 00: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).
|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


fvanzeveren

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
« Reply #2 on: 2012.05.16, 06: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

Radek

  • Full Member
  • ***
  • Posts: 201
    • View Profile
Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
« Reply #3 on: 2012.05.16, 07: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.

ALT

  • Newbie
  • *
  • Posts: 42
  • Alex Taylor
    • View Profile
    • Alex's Website
Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
« Reply #4 on: 2012.05.16, 12:04:06 »
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:
Code: [Select]
/* 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

  • Sr. Member
  • ****
  • Posts: 264
    • View Profile
Re: Watson Works Enhanced Editor (EPM) Syntax Hilighting
« Reply #5 on: 2012.05.16, 12:24:05 »
@fvanzeveren: Maybe you want to have a look here - http://www.edm2.com/index.php/Category:Tools#Editors