A complete reference of PageSeeder's markup language PSML



Used for computer source code typically with a monospaced font.


This element replaces PS Standard's block level <code> element to avoid confusion with HTML inline <code> elements.

Usage context

Element categoryblock
PSML levelportable
Permitted contenttext only*
Permitted parent<fragment> <item> <block> <cell>
HTML equivalent<pre>
OpenXML equivalent
PSStandard equivalent<code>


* This element can also contain character-style elements, however if the content is edited in CK extra line-breaks are often inserted before these elements so it is safer to avoid them.


This element includes the following attributes

rolerolenoCustom value that can be used for formatting.


A role for the preformatted section which can be used for formatting.



Preformatted plain text to preserve white space.

<preformat>            Yet do I fear thy nature;
It is too full o' the milk of human kindness
To catch the nearest way.</preformat>


Preformatted code sample

<preformat role="sample_javascript">function () {
  return "Hello!";


XML Schema

<xs:element name="preformat">
  <xs:complexType mixed="true">
    <xs:group ref="character-style-group" minOccurs="0" maxOccurs="unbounded" />
    <xs:attribute name="role" type="role"/>

Relax Schema

element preformat {
  attribute role { role }?,


This element was introduced in the first draft of PSML and is well supported from PageSeeder 5.1.

See also

Created on , last edited on