Created Feb 5, 2003 | Updated Apr 20, 2012

GuideML - CODE Tag

The <code> tags should be used to surround quotes from computer code (such as segments from programs).

Syntax and Usage

This is an HTML tag, so it can be upper or lower case, but we recommend lower case.

<code>...computer code...</code>

Simply put <code> and </code> tags round the computer code you want to be displayed as code.

Note that if your computer code contains special GuideML characters, like < and > signs or the & character, then you need to 'escape' them to prevent them from being interpreted as GuideML tags. You can do this by using &lt; instead of <, &gt; instead of > and &amp; instead of &. You can learn more in our entry on Special Character Codes.

Known Issues

None.

Example

Type IF a<b THEN END at the prompt.

Further Information

Conversations About This Entry

Title

Latest Post

There are no Conversations for this Entry


Subscribe | Unsubscribe

Infinite Improbability Drive

Read a random Approved Entry

Entry

A957233


Written and Edited by

h2g2 Editors

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Approved Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.