How To Display Source Code In a Field

It is sometimes necessary to display code in a preformatted way with a nice (white) background. This can be achieved simply by using a standard field which does not escape to HTML (ex. Editor Field) and the pre CSS class as in the example bellow:


The result will look like this:


HowToDisplaySourceCodeInAField (last edited 2008-01-03 13:47:51 by localhost)