" JJhtml: map macro html mode for vi " by Moss Collum " version 0.99 JJhtml and JJframe done, remaining templates tbd " other things finished " modified 09/07/98 " version 0.9 quicktags and generaltags done " version 0.8 basic outline created " created 09/05/98 " " If you find this useful, consider emailing me to tell me so, or " leaving a message at http://www.m14m.net/messages.php " I've noticed it getting rather a lot of hits over the past few " days, and I'm terribly curious where everyone's coming from. " " Overall Plan: " quicktags: place paired or single tags around cursor as appropriate " JJA, JJMAIL, JJB, JJI, JJ^M, JJP, JJTA, JJTR, JJTD, JJFRAME " generaltags: use user defined text as a tag " (word)JJ/, (word)JJ. " templates: provide shells for standard objects " JJhtml, JJframe, JJcolumn, JJrightscroll, JJrscol, JJcenter " tools: utility macros " JJindent " " Standard Mark Names: " i: inside of last container tag " a: attribute section of last tag " h: document header " b: document body " f: frameset " t: title " s: stylesheet " " -------------- " quicktags " -------------- " JJA: address tag map! JJA <mia/a>`ii " JJMAIL: mailto map! JJMAIL <mia/a>`ii " JJB: boldface map! JJB <mia/b>`ii " JJI: italic map! JJI <mia/i>`ii " JJ^M: line break
^M map! JJ
" JJP: paragraph break ^M

^M map! JJP

mia

`ia " JJTA: table ^M "
^M map! JJTA <mia/table> `ii " JJTR: table row ^M^M map! JJTR <mia/tr> `ii " JJTD: table cell ^M map! JJTD <mia/td> `ii " JJFRAME: frame tag ^M map! JJFRAME `aa " JJDATE: Job Posted Date

Posted date

^MM
^MM map! JJDATE

Posted //99

mia
`ia " JJLI: List Item
  • ^M

    ^M

    ^M map! JJLI
  • mia (posted //99)

    `ia " -------------- " generaltags " -------------- " (word)JJ/: <(word> map! JJ/ bdei<pemaa><mia/pea> " (word)JJ.: <(word)> map! JJ. bdei<pemaa> " " -------------- " templates " -------------- " " A good HTML file will consist of: " " a doctype " paired html tags \ " paired head tags \ | " title a title | | " -- / | | " -- / | " paired body tags \ | " the body of the thing content! | | " -- / | " -- / " " JJhtml: html template see above map! JJhtml <mta/title> <style type="text/css"><!-- -msa-></style> <mha/head> <body> <mba/body> </html>`b " " A good frameset will consist of: " <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" " "http://www.w3.org/TR/REC-html40/frameset/dtd"> " a doctype " <html> paired html tags \ " <head> paired head tags \ | " <title>title a title | | " -- / | " paired frameset tags \ | " frame tags | | " -- / | " paired noframes tags \ | " <body> paired body tags \ | | " content noframes content | | | " </body> -- / | | " -- / | " -- / " map! JJframe <mta/title> <mha/head> <frameset> <frame> <mfa/frameset> <noframes> <body> <mba/body> </noframes> </html>`f " " -------------- " tools " -------------- " JJindent: indent     map! JJindent     " " " set wrapmargin=1
  • ^M^M