EOF; $code['lisp'] = << "Hello World!" EOF; $code['html'] = <<Hello World

Hello World!

howdy

EOF; $code['ocaml'] = << 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 EOF; function test_output($lang, $language = null) { global $code; $as = ""; if (!isset($language)) $language = $lang; else $as = "as $language"; $snippet = "
\t \r\n"
  . $code[$lang]
  . "
\n"; echo "

$lang $as

\n"; echo wp_syntax_filter($snippet); echo "\n"; } ?> WP-Syntax Test Page