Access Keys:
Skip to content (Access Key - 0)

Adaptavist Documentation Move

This documentation is deprecated. Adaptavist's documentation has moved to a new location where it is maintained and updated. Please visit Adaptavist's new Documentation area.

noformat macro

Overview:

The {noformat} macro is used to display unformatted text on your pages...

The primary use of this macro is to display content such as source code, plain text documents, ascii art, etc. We use the macro extensively in the Builder User Guide to show examples of Wiki Markup Editor and Macros. As well as removing the formatting from the text, the macro also disables any other macros within it.

Parameters:

To un-format some content, simply wrap it in {noformat} macro tags:

{noformat}Your content{noformat}

Examples:

Hints and Tips:

The macro is ideal for including snippets of code or Wiki Markup Editor

You can display monospaced text, that still allows Wiki Notation, using the following notation:

{{my {color:red}wiki{color} text}}

Which gives: my wiki text

You can improve the look and feel of the code macro and noformat macro using the following CSS:

/* code and noformat blocks */

div.code, div.preformatted {
overflow: auto;
background-color: #F8F7EF;
}

div.codeContent, div.preformattedContent {
background-color: #F8F7EF;
}

div.code, div.preformatted {
border-style: solid;
}

Frequently Asked Questions:

Q For my code snippets, can I use syntax highlighting?
A Yes. Use the code macro.

See Also:



View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence