site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
view:
normal
Posting?
Links: ·The /dev/null FAQ ·Site FAQ ·Web Design/Programming Help ·Posting Rules
AuthorAll Replies


justin
Australian
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 - Examples

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


justin
Australian
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.


Wednesday, 22-May 03:34:46 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics