////////////////////////////////////////////////////////////////// // Export a document to HTML, i.e. maintain // all the nice syntax highlighting that WinEdt provides // // Denis Stancer // v 1.0 // October 29, 2001 at 13:19 ////////////////////////////////////////////////////////////////// // Set a default file name // Ask for real filename // Open the target file // Write the head and start the PRE (preformated) element ////////////////////////////////////////////////////////////////// LetReg(0, "%f.html"); EnterReg(0, "Enter target filename","Target filename"); OpenOutput("%!0"); WrL(''); WrL(""); WrL(" "); WrL(" %n%t"); WrL(" "); WrL(""); WrL("
");
//////////////////////////////////////////////////////////////////
// Export the file to TMP file using HTML_Export translation
// table (I would suggest to remove " "->  (i.e. space)
// conversion
//////////////////////////////////////////////////////////////////
ExportDoc('%f.tmp', 0, '', '">',>
   '");
WrL("");
WrL("");
CloseOutput;