please revert this!!! it does contain GPL code...
Guys! we should KNOW that this is a NO-GO !!! On Wed, Jan 27, 2010 at 9:37 PM, <ckor...@apache.org> wrote: > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPlain.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPlain.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPlain.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPlain.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,35 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Plain = function() > +{ > +}; > + > +SyntaxHighlighter.brushes.Plain.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPlain.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPlain.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPowerShell.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPowerShell.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPowerShell.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPowerShell.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,76 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.PowerShell = function() > +{ > + // Contributes by B.v.Zanten, Getronics > + // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro > + > + var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin > Clear(-Content)? Clear-Item ' + > + 'Clear-ItemProperty Clear-Variable > Compare-Object ConvertFrom-SecureString Convert-Path ' + > + 'ConvertTo-Html ConvertTo-SecureString > Copy(-Item)? Copy-ItemProperty Export-Alias ' + > + 'Export-Clixml Export-Console Export-Csv > ForEach(-Object)? Format-Custom Format-List ' + > + 'Format-Table Format-Wide Get-Acl Get-Alias > Get-AuthenticodeSignature Get-ChildItem Get-Command ' + > + 'Get-Content Get-Credential Get-Culture > Get-Date Get-EventLog Get-ExecutionPolicy ' + > + 'Get-Help Get-History Get-Host Get-Item > Get-ItemProperty Get-Location Get-Member ' + > + 'Get-PfxCertificate Get-Process Get-PSDrive > Get-PSProvider Get-PSSnapin Get-Service ' + > + 'Get-TraceSource Get-UICulture Get-Unique > Get-Variable Get-WmiObject Group-Object ' + > + 'Import-Alias Import-Clixml Import-Csv > Invoke-Expression Invoke-History Invoke-Item ' + > + 'Join-Path Measure-Command Measure-Object > Move(-Item)? Move-ItemProperty New-Alias ' + > + 'New-Item New-ItemProperty New-Object > New-PSDrive New-Service New-TimeSpan ' + > + 'New-Variable Out-Default Out-File Out-Host > Out-Null Out-Printer Out-String Pop-Location ' + > + 'Push-Location Read-Host Remove-Item > Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' + > + 'Remove-Variable Rename-Item > Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' + > + 'Select-Object Select-String Set-Acl > Set-Alias Set-AuthenticodeSignature Set-Content ' + > + 'Set-Date Set-ExecutionPolicy Set-Item > Set-ItemProperty Set-Location Set-PSDebug ' + > + 'Set-Service Set-TraceSource Set(-Variable)? > Sort-Object Split-Path Start-Service ' + > + 'Start-Sleep Start-Transcript Stop-Process > Stop-Service Stop-Transcript Suspend-Service ' + > + 'Tee-Object Test-Path Trace-Command > Update-FormatData Update-TypeData Where(-Object)? ' + > + 'Write-Debug Write-Error Write(-Host)? > Write-Output Write-Progress Write-Verbose Write-Warning'; > + var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc > fl ' + > + 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps > group gsv ' + > + 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp > nal ndr ni nv oh rdr ' + > + 'ri rni rnp rp rsnp rv rvpa sal sasv sc > select si sl sleep sort sp ' + > + 'spps spsv sv tee cat cd cp h history kill lp > ls ' + > + 'mount mv popd ps pushd pwd r rm rmdir echo > cls chdir del dir ' + > + 'erase rd ren type % \\?'; > + > + this.regexList = [ > + { regex: /#.*$/gm, > css: 'comments' }, // one line comments > + { regex: /\$[a-zA-Z0-9]+\b/g, > css: 'value' }, // variables $Computer1 > + { regex: /\-[a-zA-Z]+\b/g, > css: 'keyword' }, // Operators -not -and -eq > + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: > 'string' }, // strings > + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: > 'string' }, // strings > + { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: > 'keyword' }, > + { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: > 'keyword' } > + ]; > +}; > + > +SyntaxHighlighter.brushes.PowerShell.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPowerShell.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPowerShell.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPython.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPython.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPython.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPython.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,66 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Python = function() > +{ > + // Contributed by Gheorghe Milas and Ahmad Sherif > + > + var keywords = 'and assert break class continue def del elif else ' + > + 'except exec finally for from global > if import in is ' + > + 'lambda not or pass print raise > return try yield while'; > + > + var funcs = '__import__ abs all any apply basestring bin bool buffer > callable ' + > + 'chr classmethod cmp coerce compile complex > delattr dict dir ' + > + 'divmod enumerate eval execfile file filter > float format frozenset ' + > + 'getattr globals hasattr hash help hex id > input int intern ' + > + 'isinstance issubclass iter len list locals > long map max min next ' + > + 'object oct open ord pow print property range > raw_input reduce ' + > + 'reload repr reversed round set setattr slice > sorted staticmethod ' + > + 'str sum super tuple type type unichr unicode > vars xrange zip'; > + > + var special = 'None True False self cls class_'; > + > + this.regexList = [ > + { regex: > SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, > + { regex: /^...@\w+/gm, > css: 'decorator' }, > + { regex: /(['\"]{3})([^\1])*?\1/gm, > css: 'comments' }, > + { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, > css: 'string' }, > + { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, > css: 'string' }, > + { regex: /\+|\-|\*|\/|\%|=|==/gm, > css: 'keyword' }, > + { regex: /\b\d+\.?\w*/g, > css: 'value' }, > + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), > css: 'functions' }, > + { regex: new RegExp(this.getKeywords(keywords), > 'gm'), css: 'keyword' }, > + { regex: new RegExp(this.getKeywords(special), 'gm'), > css: 'color1' } > + ]; > + > + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); > +}; > + > +SyntaxHighlighter.brushes.Python.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Python.aliases = ['py', 'python']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPython.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushPython.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushRuby.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushRuby.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushRuby.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushRuby.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,57 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Ruby = function() > +{ > + // Contributed by Erik Peterson. > + > + var keywords = 'alias and BEGIN begin break case class def > define_method defined do each else elsif ' + > + 'END end ensure false for if in > module new next nil not or raise redo rescue retry return ' + > + 'self super then throw true undef > unless until when while yield'; > + > + var builtins = 'Array Bignum Binding Class Continuation Dir > Exception FalseClass File::Stat File Fixnum Fload ' + > + 'Hash Integer IO MatchData Method > Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + > + 'ThreadGroup Thread Time TrueClass'; > + > + this.regexList = [ > + { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, > css: 'comments' }, // one line comments > + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, > css: 'string' }, // double quoted strings > + { regex: SyntaxHighlighter.regexLib.singleQuotedString, > css: 'string' }, // single quoted strings > + { regex: /\b[A-Z0-9_]+\b/g, > css: 'constants' }, // constants > + { regex: /:[a-z][A-Za-z0-9_]*/g, > css: 'color2' }, // symbols > + { regex: /(\$|@@|@)\w+/g, > css: 'variable bold' }, // $global, > @instance, and @@class variables > + { regex: new RegExp(this.getKeywords(keywords), 'gm'), > css: 'keyword' }, // keywords > + { regex: new RegExp(this.getKeywords(builtins), 'gm'), > css: 'color1' } // builtins > + ]; > + > + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); > +}; > + > +SyntaxHighlighter.brushes.Ruby.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', > 'rb']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushRuby.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushRuby.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushScala.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushScala.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushScala.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushScala.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,53 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Scala = function() > +{ > + // Contributed by Yegor Jbanov and David Bernard. > + > + var keywords = 'val sealed case def true trait implicit forSome > import match object null finally super ' + > + 'override try lazy for var catch throw type extends > class while with new final yield abstract ' + > + 'else do if return protected private this package > false'; > + > + var keyops = '[_:=><%...@]+'; > + > + this.regexList = [ > + { regex: SyntaxHighlighter.regexLib.singleLineCComments, > css: 'comments' }, // one line comments > + { regex: SyntaxHighlighter.regexLib.multiLineCComments, > css: 'comments' }, // multiline comments > + { regex: > SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' > }, // multi-line strings > + { regex: > SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, > // double-quoted string > + { regex: SyntaxHighlighter.regexLib.singleQuotedString, > css: 'string' }, // strings > + { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, > css: 'value' }, // numbers > + { regex: new RegExp(this.getKeywords(keywords), 'gm'), > css: 'keyword' }, // keywords > + { regex: new RegExp(keyops, 'gm'), > css: 'keyword' } // scala > keyword > + ]; > +} > + > +SyntaxHighlighter.brushes.Scala.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Scala.aliases = ['scala']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushScala.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushScala.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushSql.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushSql.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushSql.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushSql.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,68 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Sql = function() > +{ > + var funcs = 'abs avg case cast coalesce convert count > current_timestamp ' + > + 'current_user day isnull left lower > month nullif replace right ' + > + 'session_user space substring sum > system_user upper user year'; > + > + var keywords = 'absolute action add after alter as asc at > authorization begin bigint ' + > + 'binary bit by cascade char character > check checkpoint close collate ' + > + 'column commit committed connect > connection constraint contains continue ' + > + 'create cube current current_date > current_time cursor database date ' + > + 'deallocate dec decimal declare > default delete desc distinct double drop ' + > + 'dynamic else end end-exec escape > except exec execute false fetch first ' + > + 'float for force foreign forward free > from full function global goto grant ' + > + 'group grouping having hour ignore > index inner insensitive insert instead ' + > + 'int integer intersect into is > isolation key last level load local max min ' + > + 'minute modify move name national > nchar next no numeric of off on only ' + > + 'open option order out output partial > password precision prepare primary ' + > + 'prior privileges procedure public > read real references relative repeatable ' + > + 'restrict return returns revoke > rollback rollup rows rule schema scroll ' + > + 'second section select sequence > serializable set size smallint static ' + > + 'statistics table temp temporary then > time timestamp to top transaction ' + > + 'translation trigger true truncate > uncommitted union unique update values ' + > + 'varchar varying view when where with > work'; > + > + var operators = 'all and any between cross in join like not null or > outer some'; > + > + this.regexList = [ > + { regex: /--(.*)$/gm, > css: 'comments' }, > // one line and multiline comments > + { regex: > SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' > }, // double quoted strings > + { regex: > SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' > }, // single quoted strings > + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), > css: 'color2' }, // functions > + { regex: new RegExp(this.getKeywords(operators), 'gmi'), > css: 'color1' }, // operators and > such > + { regex: new RegExp(this.getKeywords(keywords), 'gmi'), > css: 'keyword' } // keyword > + ]; > +}; > + > +SyntaxHighlighter.brushes.Sql.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Sql.aliases = ['sql']; > + > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushSql.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushSql.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushVb.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushVb.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushVb.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushVb.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,58 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Vb = function() > +{ > + var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As > Assembly Auto ' + > + 'Boolean ByRef Byte ByVal Call Case > Catch CBool CByte CChar CDate ' + > + 'CDec CDbl Char CInt Class CLng CObj > Const CShort CSng CStr CType ' + > + 'Date Decimal Declare Default > Delegate Dim DirectCast Do Double Each ' + > + 'Else ElseIf End Enum Erase Error > Event Exit False Finally For Friend ' + > + 'Function Get GetType GoSub GoTo > Handles If Implements Imports In ' + > + 'Inherits Integer Interface Is Let > Lib Like Long Loop Me Mod Module ' + > + 'MustInherit MustOverride MyBase > MyClass Namespace New Next Not Nothing ' + > + 'NotInheritable NotOverridable Object > On Option Optional Or OrElse ' + > + 'Overloads Overridable Overrides > ParamArray Preserve Private Property ' + > + 'Protected Public RaiseEvent ReadOnly > ReDim REM RemoveHandler Resume ' + > + 'Return Select Set Shadows Shared > Short Single Static Step Stop String ' + > + 'Structure Sub SyncLock Then Throw To > True Try TypeOf Unicode Until ' + > + 'Variant When While With WithEvents > WriteOnly Xor'; > + > + this.regexList = [ > + { regex: /'.*$/gm, > css: 'comments' }, // > one line comments > + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: > 'string' }, // strings > + { regex: /^\s*#.*$/gm, > css: 'preprocessor' }, // preprocessor > tags like #region and #endregion > + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: > 'keyword' } // vb keyword > + ]; > + > + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); > +}; > + > +SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushVb.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushVb.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > Added: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushXml.js > URL: > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushXml.js?rev=903822&view=auto > ============================================================================== > --- > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushXml.js > (added) > +++ > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushXml.js > Wed Jan 27 20:37:29 2010 > @@ -0,0 +1,71 @@ > +/** > + * SyntaxHighlighter > + * http://alexgorbatchev.com/ > + * > + * SyntaxHighlighter is donationware. If you are using it, please donate. > + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate > + * > + * @version > + * 2.1.364 (October 15 2009) > + * > + * @copyright > + * Copyright (C) 2004-2009 Alex Gorbatchev. > + * > + * @license > + * This file is part of SyntaxHighlighter. > + * > + * SyntaxHighlighter is free software: you can redistribute it and/or modify > + * it under the terms of the GNU Lesser General Public License as published > by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your option) any later version. > + * > + * SyntaxHighlighter is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with SyntaxHighlighter. If not, see > <http://www.gnu.org/copyleft/lesser.html>. > + */ > +SyntaxHighlighter.brushes.Xml = function() > +{ > + function process(match, regexInfo) > + { > + var constructor = SyntaxHighlighter.Match, > + code = match[0], > + tag = new > XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code), > + result = [] > + ; > + > + if (match.attributes != null) > + { > + var attributes, > + regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' > + > + > '\\s*=\\s*' + > + > '(?<value> ".*?"|\'.*?\'|\\w+)', > + 'xg'); > + > + while ((attributes = regex.exec(code)) != null) > + { > + result.push(new constructor(attributes.name, > match.index + attributes.index, 'color1')); > + result.push(new constructor(attributes.value, > match.index + attributes.index + attributes[0].indexOf(attributes.value), > 'string')); > + } > + } > + > + if (tag != null) > + result.push( > + new constructor(tag.name, match.index + > tag[0].indexOf(tag.name), 'keyword') > + ); > + > + return result; > + } > + > + this.regexList = [ > + { regex: new > XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), > css: 'color2' }, // <![ ... [ ... ]]> > + { regex: SyntaxHighlighter.regexLib.xmlComments, > > css: 'comments' }, // <!-- ... --> > + { regex: new > XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', > 'sg'), func: process } > + ]; > +}; > + > +SyntaxHighlighter.brushes.Xml.prototype = new > SyntaxHighlighter.Highlighter(); > +SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html']; > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushXml.js > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: > myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/js/shBrushXml.js > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf