Class wwWebShowCode

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

MemberDescription
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. If the CodeFile is missing in WCSX mode the currently executing page is loaded and displayed. If in VFP mode and CodeFile is missing the…
DisplayMode Determines how the content in CodeFile is presented. **WCSX** Web Control Framework Script Page or ASPX page. This will also work with HTML. **VFP** Displays FoxPro Source…

© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic