3 * http://alexgorbatchev.com/SyntaxHighlighter
5 * SyntaxHighlighter is donationware. If you are using it, please donate.
6 * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
9 * 3.0.83 (July 02 2010)
12 * Copyright (C) 2004-2010 Alex Gorbatchev.
15 * Dual licensed under the MIT and GPL licenses.
20 typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
24 var keywords = 'abstract assert boolean break byte case catch char class const ' +
25 'continue default do double else enum extends ' +
26 'false final finally float for goto if implements import ' +
27 'instanceof int interface long native new null ' +
28 'package private protected public return ' +
29 'short static strictfp super switch synchronized this throw throws true ' +
30 'transient try void volatile while';
33 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34 { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
35 { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38 { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39 { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40 { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
45 left : /(<|<)%[@!=]?/g,
50 Brush.prototype = new SyntaxHighlighter.Highlighter();
51 Brush.aliases = ['java'];
53 SyntaxHighlighter.brushes.Java = Brush;
56 typeof(exports) != 'undefined' ? exports.Brush = Brush : null;