# HTML(PRE)

Version Ref: 5.0 (not included in filePro Lite)

Syntax:

HTML :PR "Optional text" :WI "400"

HTML Function | TAG | Tag Code | Tag Value | Attr | Value | # of Values
| <PRE> | :PR | Optional Text | :WI | Width | 1

Description:

:PR is used to include text in which formatting is critical.

Notes: If value given, it's text is used, and </PRE> automatically closed.

Unlike in the other HTML options, text with the PRE tag will only be wrapped at the line breaks in the source, and spaces will not be collapsed. You can even use tabs, although it is better to use multiple spaces since those will always be the right number.

Text inside this tag will be displayed in a mono-spaced font to retain the formatting. This is the reason you cannot include font-changing tags inside PRE text. Images are excluded because they can introduce problems with alignment. An image can't be translated to a certain number of characters. The optional :WI attribute can be used to indicate how wide the text is (for example, :WI=80 for a typical text file). This would allow the browser to pick a font that fits all the text in the current window.