From af8b66c2c368cee8dbd57591a0daa2566f63af96 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 8 Sep 2010 18:57:36 +0000 Subject: the text viewer now does syntax highlighting for code --- .../syntaxhighlighter/scripts/shBrushPlain.js | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js (limited to 'plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js') diff --git a/plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js b/plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js new file mode 100644 index 00000000000..9f7d9e90c32 --- /dev/null +++ b/plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js @@ -0,0 +1,33 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +;(function() +{ + // CommonJS + typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; + + function Brush() + { + }; + + Brush.prototype = new SyntaxHighlighter.Highlighter(); + Brush.aliases = ['text', 'plain']; + + SyntaxHighlighter.brushes.Plain = Brush; + + // CommonJS + typeof(exports) != 'undefined' ? exports.Brush = Brush : null; +})(); -- cgit v1.2.3