1/** 2 * SyntaxHighlighter 3 * http://alexgorbatchev.com/ 4 * 5 * SyntaxHighlighter is donationware. If you are using it, please donate. 6 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 * 8 * @version 9 * 2.1.364 (October 15 2009) 10 * 11 * @copyright 12 * Copyright (C) 2004-2009 Alex Gorbatchev. 13 * 14 * @license 15 * This file is part of SyntaxHighlighter. 16 * 17 * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 * it under the terms of the GNU Lesser General Public License as published by 19 * the Free Software Foundation, either version 3 of the License, or 20 * (at your option) any later version. 21 * 22 * SyntaxHighlighter is distributed in the hope that it will be useful, 23 * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 * GNU General Public License for more details. 26 * 27 * You should have received a copy of the GNU General Public License 28 * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>. 29 */ 30SyntaxHighlighter.brushes.JavaFX = function() 31{ 32 // Contributed by Patrick Webster 33 // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html 34 var datatypes = 'Boolean Byte Character Double Duration ' 35 + 'Float Integer Long Number Short String Void' 36 ; 37 38 var keywords = 'abstract after and as assert at before bind bound break catch class ' 39 + 'continue def delete else exclusive extends false finally first for from ' 40 + 'function if import in indexof init insert instanceof into inverse last ' 41 + 'lazy mixin mod nativearray new not null on or override package postinit ' 42 + 'protected public public-init public-read replace return reverse sizeof ' 43 + 'step super then this throw true try tween typeof var where while with ' 44 + 'attribute let private readonly static trigger' 45 ; 46 47 this.regexList = [ 48 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, 49 { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, 50 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 51 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 52 { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers 53 { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes 54 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 55 ]; 56 this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 57}; 58 59SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter(); 60SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx'];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.