// TXT2HTML - Convert a text file into an HTML file. // // Author: Scott Lambert // Last change: 8/97 // // Requires: VEDIT 5.01 or later. // // Description: Starts the process of converting a text file to a HTML file. // Prompts on the status line for the title. // // See also: HTML-TXT.VDM converts an HTML file into a text file. // // From OS: vedit -x txt2html filename (Where 'filename' is your file.) // // From VEDIT: Select {MISC, Load/Execute macro}. Enter filename // "txt2html.vdm". Use default register number "100". // // OR: Run this macro as a keystroke macro, e.g. . One way // is by adding the following line to STARTUP.VDM: // // Key_Add("Shft-F5",'[VISUAL EXIT] Call_File(122,"txt2html.vdm")',OK) // // OR: Add this function to the {USER} menu by adding these lines // to USER.MNU: // // 1 // Text to HTML // CallF(122,"txt2html.vdm") // // Resources: T-Reg 103 // begin_of_file() ins_text("") ins_newline() ins_text("") ins_newline() ins_text("") get_input(103,"HTML Title =",statline+nocr) reg_ins(103) ins_text("") ins_newline() ins_text("") ins_newline() ins_text(//) ins_newline() ins_text("
")
ins_newline()
end_of_file()
ins_newline()
ins_text("
") ins_newline() ins_text("") ins_newline() ins_text("") ins_newline() return