Code: Difference between revisions From Online Manual

Jump to: navigation, search
m (Bot: Automated text replacement (-> +>))
m (Bot: Automated text replacement (-" +"))
Line 4: Line 4:
|example=[code]<br/>
|example=[code]<br/>
if (node.attributes[i].nodeValue != null)<br/>
if (node.attributes[i].nodeValue != null)<br/>
str += ' ' + node.attributes[i].nodeName + '=&quot;' + node.attributes[i].nodeValue + '&quot;';<br/>
str += ' ' + node.attributes[i].nodeName + '="' + node.attributes[i].nodeValue + '"';<br/>
[/code]
[/code]
|description=The code tag outputs code directly with simple formatting. Any BB Codes, html, php, javascript, c++, or any other text will be outputted exactly the same. The box will scroll for long lines so that the line breaks are preserved at the correct places, which is important in many languages. This is a block level tag. If php code is placed inside, with the initial <?php tag, then it will be color formated according to php syntax.
|description=The code tag outputs code directly with simple formatting. Any BB Codes, html, php, javascript, c++, or any other text will be outputted exactly the same. The box will scroll for long lines so that the line breaks are preserved at the correct places, which is important in many languages. This is a block level tag. If php code is placed inside, with the initial <?php tag, then it will be color formated according to php syntax.

Revision as of 12:00, 1 July 2013

button: Code.gif

description: The code tag outputs code directly with simple formatting. Any BB Codes, html, php, javascript, c++, or any other text will be outputted exactly the same. The box will scroll for long lines so that the line breaks are preserved at the correct places, which is important in many languages. This is a block level tag. If php code is placed inside, with the initial <?php tag, then it will be color formated according to php syntax.

<?php echo "Hello world!"?>

example: [code]

if (node.attributes[i].nodeValue != null)
str += ' ' + node.attributes[i].nodeName + '="' + node.attributes[i].nodeValue + '"';

[/code]

result:

if (node.attributes[i].nodeValue != null)
str += ' ' + node.attributes[i].nodeName + '="' + node.attributes[i].nodeValue + '"';



Advertisement: