Code Window

Overview

A code window is a section of code, such as the following, which is displayed within a text area which highlights the code.

Code Markup

The code editor will place a code editor window displaying the code given in the div. You will have to specify a height for the editor. If the code extends beyond the specified height, a scroll bar will be present on the editor window.


The following markup, where the code is enclosed within HTML comment tags, will also work. The comment tags will tell the HTML editor to ignore the contents so that it doesnt pop up any HTML errors of warnings.

Code Light

The code-light class will display the code in a little code display box. It does not require you to specify the height of the display.