PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/shInit.js

#
JavaScript | 37 lines | 34 code | 3 blank | 0 comment | 1 complexity | c1a813935cefa3127420dfbedc40c08e MD5 | raw file
 1
 2function path() { 
 3	var args = arguments, result = []; 
 4	for(var i = 0; i < args.length; i++) { 
 5		result.push(args[i].replace('@', '/Scripts/syntaxhighlighter/')); 
 6	} 
 7	return result; 
 8}
 9
10SyntaxHighlighter.autoloader.apply(null, path(
11	'applescript            @shBrushAppleScript.js',
12	'actionscript3 as3      @shBrushAS3.js',
13	'bash shell             @shBrushBash.js',
14	'coldfusion cf          @shBrushColdFusion.js',
15	'cpp c                  @shBrushCpp.js',
16	'c# c-sharp csharp      @shBrushCSharp.js',
17	'css                    @shBrushCss.js',
18	'delphi pascal          @shBrushDelphi.js',
19	'diff patch pas         @shBrushDiff.js',
20	'erl erlang             @shBrushErlang.js',
21	'groovy                 @shBrushGroovy.js',
22	'java                   @shBrushJava.js',
23	'jfx javafx             @shBrushJavaFX.js',
24	'js jscript javascript  @shBrushJScript.js',
25	'perl pl                @shBrushPerl.js',
26	'php                    @shBrushPhp.js',
27	'text plain             @shBrushPlain.js',
28	'py python              @shBrushPython.js',
29	'ruby rails ror rb      @shBrushRuby.js',
30	'sass scss              @shBrushSass.js',
31	'scala                  @shBrushScala.js',
32	'sql                    @shBrushSql.js',
33	'vb vbnet               @shBrushVb.js',
34	'xml xhtml xslt html    @shBrushXml.js'
35));
36
37SyntaxHighlighter.config.clipboardSwf='/Scripts/syntaxhighlighter/clipboard.swf';