GuideML - CODE Tag

0 Conversations

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.


<p>Type <code>IF a&lt;b THEN END</code> at the prompt.</p>

Further Information


Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A957233

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

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 Edited 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.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more