ERP5 KM

HowToDisplaySourceCodeInAField

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:

field.png

The result will look like this:

code.png

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

Page
  • Immutable Page
  • Info
  • Attachments
User
Learn about new ERP5 releases,technical articles, events and more.

Subscribe to the monthly ERP5 Newsletter!