Code

Available languages : textile, bash, bison, c, changelog, cpp, css, diff, haxe, html, java, javascript, latex, log, makefile, pascal, perl, php, prolog, properties, python, ruby, scala, sh, sql, xml, xorg

Default

bc. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Textile

bc(textile). Lorem *ipsum* dolor sit amet, consectetur adipiscing elit.
Lorem *ipsum* dolor sit amet, consectetur adipiscing elit.

Bash

bc(bash). echo "foobar"
echo "foobar"

Javascript

bc(javascript). var foo = function()
{
    alert("bar");
};
var foo = function()
{
    alert("bar");
};

HTML

bc(html). <!DOCTYPE html>
<html>
    <head>
        <title>Document title</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
        <h1>Hello World!</h1>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
        <p>roin velit est, hendrerit vitae, aliquet tincidunt, accumsan eu, pede.</p>
    </body>
</html>
<!DOCTYPE html>
<html>
    <head>
        <title>Document title</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
        <h1>Hello World!</h1>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
        <p>roin velit est, hendrerit vitae, aliquet tincidunt, accumsan eu, pede.</p>
    </body>
</html>

PHP

bc(php).. /**
 * Example
 */
class Foo extends Bar implements Plop
{
    const   CONSTANT_DEFAULT    = 'default';
    const   CONSTANT_CASE1      = 'case1';

    /**
     * Property
     *
     * @var string
     */
    private $_prop;

    /**
     * Constructor
     *
     * @param   string      $arg1       Argument 1
     */
    public function __construct($arg1)
    {
        $this->_prop = $arg1;
    }

    /**
     * My function
     *
     * @param   int         $arg1       Argument 1
     * @param   string      $arg2       Argument 2
     */
    public function myFunction($arg1 = 42, $arg2 = 'default')
    {
        if ($arg2 === self::CONSTANT_DEFAULT) {
            // comment 1
            echo "ok";
        } else {
            // comment 2
            die('failed');
        }
    }
}
/**
 * Example
 */
class Foo extends Bar implements Plop
{
    const   CONSTANT_DEFAULT    = 'default';
    const   CONSTANT_CASE1      = 'case1';

    /**
     * Property
     *
     * @var string
     */
    private $_prop;

    /**
     * Constructor
     *
     * @param   string      $arg1       Argument 1
     */
    public function __construct($arg1)
    {
        $this->_prop = $arg1;
    }

    /**
     * My function
     *
     * @param   int         $arg1       Argument 1
     * @param   string      $arg2       Argument 2
     */
    public function myFunction($arg1 = 42, $arg2 = 'default')
    {
        if ($arg2 === self::CONSTANT_DEFAULT) {
            // comment 1
            echo "ok";
        } else {
            // comment 2
            die('failed');
        }
    }
}

CSS

bc(css).. .test {
    display: none;
}

h6 {
    margin: 1em 0;
    color: #363;
    clear: both;
    font-family: Ostrich;
    font-weight: normal;
    font-size: 1.2em;
}

/* LINKS */
a {
    color: #090;
    font-size: 1em;
}
a:hover {
    color: #0f0;
}
a:active {
    color: #060;
}
.test {
    display: none;
}

h6 {
    margin: 1em 0;
    color: #363;
    clear: both;
    font-family: Ostrich;
    font-weight: normal;
    font-size: 1.2em;
}

/* LINKS */
a {
    color: #090;
    font-size: 1em;
}
a:hover {
    color: #0f0;
}
a:active {
    color: #060;
}