From ray@Celestial.COM Tue Sep 28 15:01:47 EDT 1993 Article: 1519 of comp.infosystems.www Newsgroups: comp.infosystems.www Path: samba.oit.unc.edu!concert!gatech!howland.reston.ans.net!usc!cs.utexas.edu!uunet!nwnexus!camco1!ray From: ray@Celestial.COM (Ray Jones) Subject: Re: Another set of handy HTML macros - for MS-D Organization: Celestial Software, Mercer Island, WA Date: Sat, 18 Sep 1993 23:45:33 GMT Message-ID: <1993Sep18.234533.5209@Celestial.COM> References: Lines: 52 In shem@syy.oulu.fi (Janne Himanka) writes: >>>>>> On Fri, 17 Sep 1993 12:23:33 GMT, pflynn@curia.ucc.ie (Peter Flynn) said: > Peter> I just mailed Marc to ask what needs doing to make > Peter> html-mode (and indeed someone could do this for any other > Peter> editor) _surround_ some existing text with a tag, rather > Peter> than insert null tags. I'm thinking of the process of > Peter> editing existing ASCII documents where you mark start and > Peter> end of a chunk of text and want it surrounded with a tag. >I've done this in my richtext composer for FSF Emacs 19, >rtf-compose.el. First you mark a region, give a command, which will >result in the region being showed in bold, italics or underlined. >Then, when you exit the mode (or earlier, at will) the bold etc. faces >will be converted to corresponding SGML tags. rtf-compose works with >html-mode too, as it's a minor mode. I am using VI editor on a UNIX machine and have created a .exrc file that I find easy to use for converting text to HTML. -------.exrc file---------- abbr ul
    abbr li
  • abbr pre
    map #1 I

    ^[A

    ^[ map #2 I

    ^[A

    ^[ map #3 I

    ^[ea

    ^[ map #4 i^[ea^[FXbcw map #5 i^[ea^[ map #6 i^[ea^[ map #7 i^[ea^[ map #8 I^[A^[ map #9 a

    ^[ ~ ------------end----------- The abbr's are abbrevations for the list tags and preformated text. Functions Keys are: F1=Heading level 1, inserts

    at begining of line and

    at end of line F2=Heading level 2, inserts

    at begining of line and

    at end of line F3=Heading level 3, inserts

    at begining of line and

    at end of line F4= place cursro on word being bolded for cross ref, insert href, bold word go back to XX and do change word command. F5= embold word F6= italisize word F7= place kbd tag around word F8= place title tag around line of text F9= append Paragrah tag after cursor -- INTERNET: ray@Celestial.COM | The probability of one or more Ray A. Jones; Celestial Software | spelling errors in this missive 8545 S.E. 68th Street | approaches unity. If this bothers you, Mercer Island, WA 98040;(206) 236-1676 | run it through your spell checker!