Vanilla, without other filters

php

This *is* what some php code looks like:

<div id="foo">
<?php
  function foo() {
    echo "Hello World!\n";
  }
  for ($i = 0; $i < 10 ++) {
    foo();
  }
?>
</div>

lisp

This *is* what some lisp code looks like:

1
2
3
(defun foo
  "bleh *bleh* bleh"
  (interactive))

java

This *is* what some java code looks like:

1
2
3
4
5
public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}

xml

This *is* what some xml code looks like:

<xml>
	<foo>
		<bar id="howdy">&quot;Hello World!&quot;</bar>
	</foo>
</xml>

html as html4strict

This *is* what some html code looks like:

<html><head><title>Hello World</title></head>
  <body>
    <h1>Hello World!</h1>
    <p><strong>howdy</strong></p>
  </body>
</html>

html as xml

This *is* what some html code looks like:

18
19
20
21
22
23
<html><head><title>Hello World</title></head>
  <body>
    <h1>Hello World!</h1>
    <p><strong>howdy</strong></p>
  </body>
</html>

ocaml

This *is* what some ocaml code looks like:

let square x = x * x;;
val square : int -> int =
let rec fact x =
  if x < = 1 then 1 else x * fact (x - 1);;
val fact : int -> int =
fact 5;; - : int = 120
square 120;; - : int = 14400

python

This *is* what some python code looks like:

from itertools import islice
 
def fib():
    x, y = 1, 1
    while True:
        yield x
        x, y = y, x + y
 
for num in islice(fib(), 20):
    print num

ruby

This *is* what some ruby code looks like:

18
19
20
21
22
class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end

ruby

This *is* what some ruby code looks like:

class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end

rails

This *is* what some rails code looks like:

ActionController::Routing::Routes.draw do |map|
   map.connect ':controller/:action', :action => 'index', :requirements => { :action => /(?:[a-z](?:[-_]?[a-z]+)*)/ }
   map.connect ':controller/:id',     :action => 'show',  :requirements => { :id     => /\d+/                       }
   map.connect ':controller/:id/:action',
end

Modified, with other filters

php

This *is* what some php code looks like:

<div id="foo">
<?php
  function foo() {
    echo "Hello World!\n";
  }
  for ($i = 0; $i < 10 ++) {
    foo();
  }
?>
</div>

lisp

This *is* what some lisp code looks like:

1
2
3
(defun foo
  "bleh *bleh* bleh"
  (interactive))

java

This *is* what some java code looks like:

1
2
3
4
5
public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}

xml

This *is* what some xml code looks like:

<xml>
	<foo>
		<bar id="howdy">&quot;Hello World!&quot;</bar>
	</foo>
</xml>

html as html4strict

This *is* what some html code looks like:

<html><head><title>Hello World</title></head>
  <body>
    <h1>Hello World!</h1>
    <p><strong>howdy</strong></p>
  </body>
</html>

html as xml

This *is* what some html code looks like:

18
19
20
21
22
23
<html><head><title>Hello World</title></head>
  <body>
    <h1>Hello World!</h1>
    <p><strong>howdy</strong></p>
  </body>
</html>

ocaml

This *is* what some ocaml code looks like:

let square x = x * x;;
val square : int -> int =
let rec fact x =
  if x < = 1 then 1 else x * fact (x - 1);;
val fact : int -> int =
fact 5;; - : int = 120
square 120;; - : int = 14400

python

This *is* what some python code looks like:

from itertools import islice
 
def fib():
    x, y = 1, 1
    while True:
        yield x
        x, y = y, x + y
 
for num in islice(fib(), 20):
    print num

ruby

This *is* what some ruby code looks like:

18
19
20
21
22
class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end

ruby

This *is* what some ruby code looks like:

class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end

rails

This *is* what some rails code looks like:

ActionController::Routing::Routes.draw do |map|
   map.connect ':controller/:action', :action => 'index', :requirements => { :action => /(?:[a-z](?:[-_]?[a-z]+)*)/ }
   map.connect ':controller/:id',     :action => 'show',  :requirements => { :id     => /\d+/                       }
   map.connect ':controller/:id/:action',
end