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 Autoloader 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/shAutoloader.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<h2>SyntaxHighlighter Autoloader Demo</h2>
16
17<p>
18	The highlighters below have their brushes loaded dynamically as evident by looking at
19	the <code>&lt;head /></code> of this HTML file.
20</p>
21
22<script type="syntaxhighlighter" class="brush: applescript"><![CDATA[applescript]]></script>
23<script type="syntaxhighlighter" class="brush: actionscript3"><![CDATA[actionscript3]]></script>
24<script type="syntaxhighlighter" class="brush: bash"><![CDATA[bash]]></script>
25<script type="syntaxhighlighter" class="brush: coldfusion"><![CDATA[coldfusion]]></script>
26<script type="syntaxhighlighter" class="brush: cpp"><![CDATA[cpp]]></script>
27<script type="syntaxhighlighter" class="brush: c#"><![CDATA[c#]]></script>
28<script type="syntaxhighlighter" class="brush: css"><![CDATA[css]]></script>
29<script type="syntaxhighlighter" class="brush: delphi"><![CDATA[delphi]]></script>
30<script type="syntaxhighlighter" class="brush: diff"><![CDATA[diff]]></script>
31<script type="syntaxhighlighter" class="brush: erl"><![CDATA[erl]]></script>
32<script type="syntaxhighlighter" class="brush: groovy"><![CDATA[haxe]]></script>
33<script type="syntaxhighlighter" class="brush: haxe"><![CDATA[groovy]]></script>
34<script type="syntaxhighlighter" class="brush: java"><![CDATA[java]]></script>
35<script type="syntaxhighlighter" class="brush: jfx"><![CDATA[jfx]]></script>
36<script type="syntaxhighlighter" class="brush: js"><![CDATA[js]]></script>
37<script type="syntaxhighlighter" class="brush: perl"><![CDATA[perl]]></script>
38<script type="syntaxhighlighter" class="brush: php"><![CDATA[php]]></script>
39<script type="syntaxhighlighter" class="brush: text"><![CDATA[text]]></script>
40<script type="syntaxhighlighter" class="brush: py"><![CDATA[py]]></script>
41<script type="syntaxhighlighter" class="brush: ruby"><![CDATA[ruby]]></script>
42<script type="syntaxhighlighter" class="brush: scala"><![CDATA[scala]]></script>
43<script type="syntaxhighlighter" class="brush: sql"><![CDATA[sql]]></script>
44<script type="syntaxhighlighter" class="brush: vb"><![CDATA[vb]]></script>
45<script type="syntaxhighlighter" class="brush: xml"><![CDATA[xml]]></script>
46
47<script type="text/javascript">
48SyntaxHighlighter.autoloader(
49	'applescript			../scripts/shBrushAppleScript.js',
50	'actionscript3 as3		../scripts/shBrushAS3.js',
51	'bash shell				../scripts/shBrushBash.js',
52	'coldfusion cf			../scripts/shBrushColdFusion.js',
53	'cpp c					../scripts/shBrushCpp.js',
54	'c# c-sharp csharp		../scripts/shBrushCSharp.js',
55	'css					../scripts/shBrushCss.js',
56	'delphi pascal			../scripts/shBrushDelphi.js',
57	'diff patch pas			../scripts/shBrushDiff.js',
58	'erl erlang				../scripts/shBrushErlang.js',
59	'groovy					../scripts/shBrushGroovy.js',
60	'haxe hx				../scripts/shBrushHaxe.js',
61	'java					../scripts/shBrushJava.js',
62	'jfx javafx				../scripts/shBrushJavaFX.js',
63	'js jscript javascript	../scripts/shBrushJScript.js',
64	'perl pl				../scripts/shBrushPerl.js',
65	'php					../scripts/shBrushPhp.js',
66	'text plain				../scripts/shBrushPlain.js',
67	'py python				../scripts/shBrushPython.js',
68	'ruby rails ror rb		../scripts/shBrushRuby.js',
69	'scala					../scripts/shBrushScala.js',
70	'sql					../scripts/shBrushSql.js',
71	'vb vbnet				../scripts/shBrushVb.js',
72	'xml xhtml xslt html	../scripts/shBrushXml.js'
73);
74
75//
76// Another way of setting up the autoloader
77//
78// SyntaxHighlighter.autoloader(
79// 	[ 'applescript',					'../scripts/shBrushAppleScript.js' ],
80// 	[ 'actionscript3', 'as3',			'../scripts/shBrushAS3.js' ],
81// 	[ 'bash', 'shell',					'../scripts/shBrushBash.js' ],
82// 	[ 'coldfusion', 'cf',				'../scripts/shBrushColdFusion.js' ],
83// 	[ 'cpp', 'c',						'../scripts/shBrushCpp.js' ],
84// 	[ 'c#', 'c-sharp', 'csharp',		'../scripts/shBrushCSharp.js' ],
85// 	[ 'css',							'../scripts/shBrushCss.js' ],
86// 	[ 'delphi', 'pascal',				'../scripts/shBrushDelphi.js' ],
87// 	[ 'diff', 'patch', 'pas',			'../scripts/shBrushDiff.js' ],
88// 	[ 'erl', 'erlang',					'../scripts/shBrushErlang.js' ],
89// 	[ 'groovy',							'../scripts/shBrushGroovy.js' ],
90// 	[ 'haxe hx',        				'../scripts/shBrushHaxe.js', ],
91// 	[ 'java',							'../scripts/shBrushJava.js' ],
92// 	[ 'jfx', 'javafx',					'../scripts/shBrushJavaFX.js' ],
93// 	[ 'js', 'jscript', 'javascript',	'../scripts/shBrushJScript.js' ],
94// 	[ 'perl', 'pl',						'../scripts/shBrushPerl.js' ],
95// 	[ 'php',							'../scripts/shBrushPhp.js' ],
96// 	[ 'text', 'plain',					'../scripts/shBrushPlain.js' ],
97// 	[ 'py', 'python',					'../scripts/shBrushPython.js' ],
98// 	[ 'ruby', 'rails', 'ror', 'rb',		'../scripts/shBrushRuby.js' ],
99// 	[ 'scala',							'../scripts/shBrushScala.js' ],
100// 	[ 'sql',							'../scripts/shBrushSql.js' ],
101// 	[ 'vb', 'vbnet',					'../scripts/shBrushVb.js' ],
102// 	[ 'xml', 'xhtml', 'xslt', 'html',	'../scripts/shBrushXml.js' ]
103// );
104
105SyntaxHighlighter.all();
106</script>
107
108</body>
109</html>
110