diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-09-08 18:57:36 +0000 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-09-08 20:18:42 +0000 |
commit | af8b66c2c368cee8dbd57591a0daa2566f63af96 (patch) | |
tree | f00a61d72895682df8a2ee7cf8f3ec1adec05082 /plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js | |
parent | 8ce564ccfe470c3215547893db488ed6d948d867 (diff) | |
download | nextcloud-server-af8b66c2c368cee8dbd57591a0daa2566f63af96.tar.gz nextcloud-server-af8b66c2c368cee8dbd57591a0daa2566f63af96.zip |
the text viewer now does syntax highlighting for code
Diffstat (limited to 'plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js')
-rw-r--r-- | plugins/textviewer/syntaxhighlighter/scripts/shBrushPlain.js | 33 |
1 files changed, 33 insertions, 0 deletions
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; +})(); |