home *** CD-ROM | disk | FTP | other *** search
- /*
- ** html_newline.ced
- **
- ** $VER: html_newline.ced 1.3 (12.21.1998)
- **
- ** Arexx script for HTML v3.2 new line mark
- **
- ** This script works with CygnusEd Professional v4.2
- **
- ** Copyright ⌐ Eric BELLE
- */
-
- /*
- **------------------------------------------------------------------------------
- ** Initialisation
- **------------------------------------------------------------------------------
- */
-
- OPTIONS RESULTS /* Tell CygnusEd to return results. */
- NL = '0A'X /* Alias for new line. */
- KRETURN = RAWKEY 68 /* Shortcut to the return key. */
- KTAB = RAWKEY 66 /* Shortcut to the tab key. */
- STATUS TABSARESPACES /* Return TAB mode ("tab" or "space"). */
- IF RESULT = 1 /* Test the TAB mode. */
- THEN "TABS = SPACES" /* Switch TAB mode from "space" to "tab". */
- ELSE NOP /* No operation. */
- TAB SIZE 1 /* Set TAB size proportional to 2 spaces. */
-
- /*
- **------------------------------------------------------------------------------
- ** New line mode
- **------------------------------------------------------------------------------
- */
-
- NewLineMode = "q"
- DO WHILE ~(NewLineMode="d" | NewLineMode="s" | NewLineMode=" " | NewLineMode="RESULT")
- GETSTRING "d" '"New line: (d)efault, (s)pecial no new line structure?"'
- NewLineMode = RESULT
- END
-
- IF (NewLineMode=" " | NewLineMode="RESULT")
- THEN EXIT 0
- ELSE NOP
-
- /*
- **------------------------------------------------------------------------------
- ** New line mark
- **------------------------------------------------------------------------------
- */
-
- IF (NewLineMode="d")
- THEN TEXT "<BR>"
- ELSE TEXT "<WBR>"
-
- /*
- **------------------------------------------------------------------------------
- ** End of html_newline.ced Arexx script
- **------------------------------------------------------------------------------
- */
-
- EXIT 0
-