1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5	<title>SyntaxHighlighter Server Side Demo</title>
6	<script type="text/javascript" src="../scripts/xregexp.js"></script> <!-- XRegExp is bundled with the final shCore.js during build -->
7	<script type="text/javascript" src="../scripts/shCore.js"></script>
8	<script type="text/javascript" src="../scripts/shBrushJScript.js"></script>
9	<link type="text/css" rel="stylesheet" href="../styles/shCore.css"/>
10	<link type="text/css" rel="Stylesheet" href="../styles/shThemeDefault.css" />
11</head>
12
13<body>
14
15<h1>SyntaxHighlighter Server Side Demo</h1>
16<p>
17	This page demonstrated ability to run SyntaxHighlighter independently of the browser's DOM,
18	there by allowing execution on the server or through some other means.
19</p>
20
21<script type="text/plain" id="input">
22function helloWorld()
23{
24	// this is great!
25	for(var i = 0; i <= 1; i++)
26		alert("yay");
27}
28</script>
29
30<script type="text/javascript">
31var brush = new SyntaxHighlighter.brushes.JScript(),
32	code = document.getElementById('input').innerHTML,
33	html
34	;
35
36brush.init({ toolbar: false });
37html = brush.getHtml(code);
38
39document.write(html);
40</script>
41
42</body>
43</html>
44
45