home *** CD-ROM | disk | FTP | other *** search
/ back2roots/filegate / filegate.zip / filegate / ads / adsdbase / ced_html.lha / CED_HTML / Html / html_font.ced < prev    next >
Encoding:
Text File  |  1999-01-11  |  2.0 KB  |  74 lines

  1. /*
  2. ** html_font.ced
  3. **
  4. ** $VER: html_font.ced 1.0 (12.02.1998)
  5. **
  6. ** Arexx script for HTML v3.2 font options
  7. **
  8. ** This script works with CygnusEd Professional v4.2
  9. **
  10. ** Copyright ⌐ Eric BELLE
  11. */
  12.  
  13. /*
  14. **------------------------------------------------------------------------------
  15. **    Initialisation
  16. **------------------------------------------------------------------------------
  17. */
  18.  
  19. OPTIONS RESULTS                            /* Tell CygnusEd to return results. */
  20. NL = '0A'X                                    /* Alias for new line. */
  21. KRETURN = RAWKEY 68                    /* Shortcut to the return key. */
  22. KTAB = RAWKEY 66                        /* Shortcut to the tab key. */
  23. STATUS TABSARESPACES                /* Return TAB mode ("tab" or "space"). */
  24. IF RESULT = 1                                /* Test the TAB mode. */
  25. THEN "TABS = SPACES"                /* Switch TAB mode from "space" to "tab". */
  26. ELSE NOP                                        /* No operation. */
  27. TAB SIZE 1                                    /* Set TAB size proportional to 2 spaces. */
  28.  
  29. /*
  30. **------------------------------------------------------------------------------
  31. **    Font size
  32. **------------------------------------------------------------------------------
  33. */
  34.  
  35. GETNUMBER "3" '"Font size (def=3)?"' 1 7
  36. FontSize = RESULT
  37.  
  38. IF (FontSize=" ")
  39. THEN EXIT 0
  40. ELSE NOP
  41.  
  42. /*
  43. **------------------------------------------------------------------------------
  44. **    Font color
  45. **------------------------------------------------------------------------------
  46. */
  47.  
  48. GETSTRING "#000000" '"Font color (#RGB)?"'
  49. FontColor = RESULT
  50.  
  51. IF (FontColor=" " | FontColor="RESULT")
  52. THEN EXIT 0
  53. ELSE NOP
  54.  
  55. /*
  56. **------------------------------------------------------------------------------
  57. **    Html font structure
  58. **------------------------------------------------------------------------------
  59. */
  60.  
  61. TEXT "<FONT SIZE=" || FontSize || " COLOR=" || FontColor || ">"
  62. "AUTO-INDENT" ; KTAB
  63. TEXT "Sould be modified - Font options"
  64. "AUTO-INDENT" ; BACKTAB
  65. TEXT "</FONT>"
  66.  
  67. /*
  68. **------------------------------------------------------------------------------
  69. **    End of html_font.ced Arexx script
  70. **------------------------------------------------------------------------------
  71. */
  72.  
  73. EXIT 0
  74.