dslreports logo

    All FAQs Site FAQ DSL FAQ Cable Tech About DSL Distance DSL Hurdles »»


how-to block ads

Posting material that would otherwise be translated is now easier, using code blocks:

UPDATE: New inline code blocks are quite useful for explaining things code or config related since they can contain < and > and other dangerous characters without worry.
You can use them like this:

please use [blockquote=..]


include someones username by [user=fatness]

Use them like <code> .. </code> anywhere.
(Note: This is different from the code tag enclosed in braces, below)

Email headers, often pasted in the stopping spam forums, often contain html-like stuff that would otherwise be stripped.
You can now just put that stuff inside a code block, and it will be left alone.

will look like this:
 Return-Path: <xxxx@yahoo.com> X-Original-To: yyy@dslr.net
Delivered-To: yyyy@dslr.net
Received: from localhost (localhost [])
        by mail.dslr.net (Postfix) with ESMTP id 0793E1CB25
        for <yyyy@dslr.net>; Mon,  3 Nov 2003 09:45:58 -0500 (EST)
Received: from mail.dslr.net ([])
 by localhost (gold []) (amavisd-new) with ESMTP id 30156-08
 for <yyyy@dslr.net>; Mon,  3 Nov 2003 09:45:57 -0500 (EST)

Programming code or javascript type code also looks best if formatting is preserved, and the font is mono-spaced. Code blocks do that as well.

Will show up looking like this:

  for($x=0; $x<=10; $x++) {     # My code goes here  }

URLs within code blocks:

will look like this:

If it does not preview the way you want, it won't post, so there is no point posting hoping it will somehow magically fix itself.

When you preview your code you may see extraneous HTML breaks in the code lines, but in the final form, they will not appear.

Syntax Colored Code:

See these two FAQ entries:
»/dev/null forum FAQ »How do I post syntax-colored CODE
»/dev/null forum FAQ »What languages are supported in syntax blocks

Expand got feedback?

by KeysCapt See Profile
last modified: 2010-11-15 07:02:43