; ; Macro Name: htmlgen ; Author: Dana French ; Author E-mail: dfrench@xoommail.com ; ; Creation Date: 11/19/1998 ; Version: 1.0 ; ; This macro only works with MicroEMACS Version 3.12 ; There is a separate version of this macro which ; works with MicroEmacs 4.00. ; set %bgcolor "white" ; background color set %textcolor "black" ; text color set %linkcolor "blue" ; link color set %vlinkcolor "red" ; Viewed link color set %alinkcolor "yellow" ; Active link color set %headercolor "darkblue" ; header font color set %tcfontcolor "darkblue" ; table caption color set %thcolor "lightblue" ; table header color set %tdcolor "white" ; table data color set %hrcolor "red" ; horizontal rule color set %hrsize "5" ; horizontal rule size set %frmbordersize "3" ; Frame Border Size set %basefontsize "4" ; base font size set %basefontcolor "black" ; base font color set %thfontcolor "darkblue" ; table header font color set %tdfontcolor "black" ; table data font color set %basefontsize "4" ; base font size set %tcfontsize "5" ; table caption font size set %thfontsize "4" ; table header font size set %tdfontsize "3" ; table data font size set %tablewidth "100~%" ; table width set %tableborder "2" ; table border size set %cellspacing "2" ; table cell spacing size set %cellpadding "2" ; table cell padding size set %dtfontcolor "black" ; Definition List term color set %dtfontsize "4" ; Definition List term size set %ddfontcolor "black" ; Definition List term explanation color set %ddfontsize "3" ; Definition List term explanation size set %addrfontcolor "black" ; Address Section Font Color set %addrfontsize "2" ; Address Section Font Size set %tablecaption "1" ; Table caption ON set %tableheader "1" ; Table header ON set %imgtag "0" ; IMG tag OFF set %htmlhelp "0" ; set %headimport "/usr/local/html/head.html" ; set %frameimport "/usr/local/html/framehead.html" ; set %footimport "/usr/local/html/foot.html" ; set %pagetitle "" ; initialize to NULL set %author "" ; initialize to NULL set %email "" ; initialize to NULL ;################################################################ 1 store-macro ; Generate Generic HTML Header set %htmljava 1 set %pagetitle @"Title of this page? " set %author @"Page Authors Name? " set %email @"Page Authors E-mail Address? " insert-string "~n" execute-procedure headsection execute-procedure bodysection set %htmljava 0 !endm 2 store-macro ; Import HTML Header File set %curcol $curcol set %question &cat &cat "Import HTML Header File Name (" %headimport ")? " set %impfile @%question !if &seq %impfile "" set %impfile %headimport !endif !if ¬ &seq %impfile "" insert-file %impfile !endif set %pagetitle @"Title of this page? " set %author @"Page Authors Name? " set %email @"Page Authors E-mail Address? " beginning-of-file replace-string "[[PAGETITLE]]" %pagetitle beginning-of-file replace-string "[[AUTHOR]]" %author beginning-of-file replace-string "[[EMAIL]]" %email end-of-file !endm 3 store-macro set %noop 0 !endm 4 store-macro set %noop 0 !endm ;################################################################ 5 store-macro ; Generate FRAME page set %curcol $curcol set %pagetitle @"Title of this page? " set %author @"Page Authors Name? " set %email @"Page Authors E-mail Address? " insert-string "~n" execute-procedure headsection insert-string "