fnFormatWebSource() fnFormatWebSource(...) DESCRIPTION This function format the source file of a web page (html or asp) and returns a new file which contains a formatted version of the old file. This formatting means indenting table tags properly, ensuring that only two attribute values at most are contained on any one line, and that the attribute equal signs all line up. (this is my personal preference for formatting) SYNTAX fnFormatWebSource(sSourceFile, sTargetFile, sFormatStyle) EXAMPLE UNTESTED CODE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnFormatWebSource "OldFile.html", "NewFile.html" '--<--<--<--<--<--<--<--<--< %> RESULTS False PARAMETERS sSourceFile {string, required} This is the web source file that is to be formatted. sTargetFile {string, required} This is the target web file to receive the formatted text. sFormatStyle {string, default=Anal} This parameter may allow the formatting of the web source file in a variety of different styles. STATUS not written DEPENDENCIES fnErrorMessage.asp PROGRAMMER Matthew Bishop (matthew@massive.com.au or matth3wbishop@yahoo.com) LOCATION http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION http://www.geocities.com/matth3wbishop/eg/asp/ LANGUAGE MS Jscript? Perl? Assembler (Filter Function, using standard input/ output) COMMENTS: a) This might be a good function to write in perl- need to get active perl (or linux) b) c) SEE ALSO