This control can be used to quickly add a View Source capability to any Web page. Simply drop the control assign a CodeFile and DisplayMode to choose a format and you're ready to go. Source code is displayed with Syntax color highlighting using csCodeParser.
Clicking on the button will display the source code at the location of the button with an option to hide the content.
Remarks
Requires that you explicitly add SET PROCEDURE TO csCodeParser ADDITIVE in your server's startup code
Class Members
Member | Description | |
---|---|---|
Click |
Fired when the Code Display Button is clicked. You can use this method to override the stock behavior of the control and dynamically assign CodeFile and DisplayMode properties. o.Click() |
|
CodeFile |
The file that is to be formatted and displayed. | |
DisplayMode |
Determines how the content in CodeFile is presented. |
© West Wind Technologies, 1996-2024 • Updated: 12/22/10
Comment or report problem with topic