 justinAustralian join:1999-05-28 New York, NY kudos:7 Host: IPv6 Business Connectiv.. Console/Handheld g.. Home/Office setup .. Photos of Broadban..
4 edits | reply to justin
Re: Posting How To - ExamplesUsing code tag for inline code
An inline code section looks like this it can be useful if discussing some small piece of code or configuration file. To use inline code do the following <code>these words are monospaced and highlighted</code>
Within an inline code block it is safe to use other characters, such as < or >. Everything within inline code tags is preserved as you typed it.
code blocks
A code BLOCK (not an inline chunk of code) is an entire block of mono-spaced text that will be syntax colored according to the language. Several code blocks have been used above.
A code block is very useful when you do not wish anything you type to be interpreted (or misinterpreted) within the code block itself. The format of the text is also exactly preserved.
Code blocks start [ code=xxx ] and end [ /code ] (with no spaces). XXX should be language if you wish syntax coloring. For instance code=js or code=html or code=php
Within a code block, special characters, > ' &
and so on, can be used without any interpretation
being done on them by the forum software or by the
viewers broswer.
|
 justinAustralian join:1999-05-28 New York, NY kudos:7 Host: IPv6 Business Connectiv.. Console/Handheld g.. Home/Office setup .. Photos of Broadban..
4 edits | Code blocks and wrapping
As far as possible, stuff in code blocks is not changed. If the code lines are very long then horizontal scrollbars will appear. Nevertheless if the code lines have extreme length, please consider re-formatting them. |