'ls2html: Option Public Option Explicit Option Compare Nocase %REM ls2html is a script library that contains functions to convert raw LotusScript code (in the form of a string or a file) to formatted HTML. The two main functions you'll use are ConvertFile and ConvertString (the other functions are mainly internal helper functions). These will convert a file or a string of LotusScript, using the internal default styles, which should approximate the look of code within the Notes/Domino Designer IDE. If you want to use your own custom styles, you can define your own style definition (with a StyleDef variable) and pass it in to the ConvertFileEx or ConvertStringEx functions. You can also use the last parameter of the ConvertFileEx and ConvertStringEx functions to specify the way that the resulting HTML is formatted. If you specify True or OUTPUT_CSS as the last parameter, then the HTML uses CSS styles to format the output (you can get the structure of the CSS " End If Print #outFile, "" Print #outFile, "
" End If Print #outFile, START_SCRIPT '** line-by-line, convert the input file While Not Eof(inFile%) Line Input #inFile, rawLS Print #outFile, ConvertLine(rawLS) Wend '** and write some closing information when we're done Print #outFile, END_SCRIPT If Not (useCSS = OUTPUT_TAGS) Then Print #outFile, "" Print #outFile, "