home *** CD-ROM | disk | FTP | other *** search
- /*
- ** html_comment.ced
- **
- ** $VER: html_comment.ced 1.4 (12.28.1998)
- **
- ** Arexx script for HTML v3.2 comment 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. */
-
- /*
- **------------------------------------------------------------------------------
- ** Comment text
- **------------------------------------------------------------------------------
- */
-
- GETSTRING "Comment" '"Enter comment"'
- CommentText = RESULT
-
- IF (CommentText=" " | CommentText="RESULT")
- THEN EXIT 0
- ELSE NOP
-
- /*
- **------------------------------------------------------------------------------
- ** Comment mark
- **------------------------------------------------------------------------------
- */
-
- TEXT "<!-- " || CommentText || " -->"
-
- /*
- **------------------------------------------------------------------------------
- ** End of html_comment.ced Arexx script
- **------------------------------------------------------------------------------
- */
-
- EXIT 0
-