HtmlFormat Type
Generates color-coded HTML 4.01 from HTML/XML/ASPX source code.
This implementation assumes that code inside <script> blocks is JavaScript, and code inside <% %> blocks is C#.
The default tab width is set to 2 characters in this class.
Constructors
| Constructor |
Description
|
Full Usage:
HtmlFormat()
|
|
Inherited members
Inherited from
SourceFormat
Instance members
| Instance member |
Description
|
Full Usage:
this.FormatCode
Parameters:
Stream
-
Source code stream.
Returns: string
A string containing the HTML formatted code.
|
Transforms a source code stream to HTML 4.01.
|
Full Usage:
this.FormatCode
Parameters:
string
Returns: string
A string containing the HTML formatted code.
|
Transforms a source code string to HTML 4.01.
|
Full Usage:
this.FormatSubCode
Parameters:
string
Returns: string
|
Allows formatting a part of the code in a different language, for example a JavaScript block inside an HTML file.
|
Full Usage:
this.TabSpaces
Returns: byte
|
Gets or sets the tabs width.
|
Full Usage:
this.LineNumbers
Returns: bool
|
Enables or disables line numbers in output.
|
Full Usage:
this.Alternate
Returns: bool
|
Enables or disables alternating line background.
|
Full Usage:
this.EmbedStyleSheet
Returns: bool
|
Enables or disables the embedded CSS style sheet.
|
|
The regular expression used to capture language tokens.
|
Static members
| Static member |
Description
|
|
|
Full Usage:
SourceFormat.GetCssString()
Returns: string
A string containing the CSS definitions.
|
Gets the CSS stylesheet as a string.
|
Full Usage:
SourceFormat.EscapeHtml(str, tabSpaces)
Parameters:
string
tabSpaces : int
Returns: string
|
TBD
|
FSharp.Formatting