This section of the document describes the ARexx script the HTML-Heaven package uses to interface with a number of Amiga text editors. It is a very simple script basically. This approach was chosed to make it easy for every user to create a script for HTML-Heaven to support his or hers editor. All that's required from the editor is that it supports ARexx and allows text-insertion either at the current cursos position or at the beginning of a line. What now follows is a simple example script that you may adapt to suit your editor. But please, if you have done this and the editor you adapted it for is not yet on the list of supported editors, send that script to html-heaven@serena.iaehv.nl. That way other users can benefit from it too.

Currently the following editors are supported:

- AME (HTML-AME.rexx)                   + Thanks to Martin Reddy
- Annotate 2.0
- Black's Editor [BEd] (HTML-BEd.rexx)
- CygnusEd 3.5 Pro (HTML-CEd.rexx)
- Amiga's Ed (HTML-Ed.rexx)             (Limited support)
- EdWord (HTML-EdWord.rexx)             + Thanks to the EdWord author.
- EdWord v.5 (HTML-EdWord5.rexx)        + Thanks to Martin Reddy.
- FRexxEd (HTML-FRexxEd.rexx)           + Thanks to Michiel Willems.
- Final Writer 4 (HTML-FW.rexx)
- GoldEd (HTML-GoldEd.rexx)
- MicroEmacs (HTML-MEmacs.rexx)         + Thanks to Ellis Pritchard.
- PolyEd (HTML-PolyEd.rexx)
- SAS's SE editor (HTML-SE.rexx) 
- SkoEd (HTML-SkoEd.rexx) 
- Textra (HTML-Textra.rexx)             + Thanks to Ron Charlton.
- TurboText (HTML-TTX.rexx)             + Many thanks to Cletus Baker.  

How to install support for your editor? Simple, copy the correct script to S: and name it HTML.rexx. Registered users can specify the name of the script to use as a CLI parameter or ToolType also.


/* HTML-Helper example Arexx script.
 * Ver      : 0.9 (28th November 1994)
 * Copyright: Paul Kolenbrander (InterNet: paul@serena.iaehv.nl)
 * Function : Pass on the HTML commands from HTML-Helper to an Editor.
 * Input    : HTMLCMD - The HTML command to be inserted.
*/

OPTIONS RESULTS                                /* enable return codes      */
PARSE ARG  HTMLCMD

/* The below line is required by some editors as to strip any trailing and */
/* leading " from the string. Other editors require a string to be enclosed*/
/* between ". So default behaviour for the HTML-Heaven package is to do so.*/

HTMLCMD = SUBSTR(HTMLCMD,2, LENGTH(HTMLCMD)-2) 

/* Now we give this script the address of your editors ARexx Host. Replace */
/* the name between the ' and ' by the one used by your editor. It should  */
/* be mentioned in the editor's manual what this name is.                  */ 

address 'editor_rexx_host 

/* And now we insert the HTML command string into the editor. Just replace */
/* the InsertText part below by the command, or sequence of commands that  */
/* is required by your editor. Again, please consult your editor's manual. */ 

InserText HTMLCMD

EXIT                                           /* And exit the script.     */

Back to the index.


Page created using HTML-Heaven. �1994 by Paul Kolenbrander (paul@serena.iaehv.nl)