@ -0,0 +1,101 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<!-- VSdocman config file for current project/solution.-->
|
||||||
|
<activeProfile>default</activeProfile>
|
||||||
|
<appSettings>
|
||||||
|
<add key="VBdocman_comNonCommented"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_regexFilters"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<filters />]]></add>
|
||||||
|
<add key="VBdocman_customVar1"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_comInterface"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_outputPath"><![CDATA[$(ProjectDir)VSdoc]]></add>
|
||||||
|
<add key="VBdocman_useConditionalCompilation"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_customVar2"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_SupportedXamarinIos"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_generateJscriptSyntax"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_enumSorting"><![CDATA[1]]></add>
|
||||||
|
<add key="VBdocman_comPrivateProtected"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_comStdModule"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_ListNamespacesWithShortNames"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_comPublic"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_supportedPlatforms"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_comVariable"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_comProtected"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_supportedNetFrameworkClientProfile"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_comPrivate"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_comWriteDescription"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_comProtectedFriend"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_comObject"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_comDelegate"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_supportedXnaFramework"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_emptyOutputFolder"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_rootNamespaceCommentStyle"><![CDATA[2]]></add>
|
||||||
|
<add key="VBdocman_comEnumeration"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_comMethod"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_comProperty"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_supportedNetCompactFramework"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_removeAttributes"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_externalFilesFolder"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_showFormsSeparate"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_generateCsharpSyntax"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_allowMacrosInComments"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_linkForExternalNotInFramework"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_showInherited"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_templateLocale"><![CDATA[en-US]]></add>
|
||||||
|
<add key="VBdocman_SupportedNetCore"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_customVar3"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_unbreakSourceLines"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_supportedNetFramework"><![CDATA[4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8]]></add>
|
||||||
|
<add key="VBdocman_pageFooterText"><![CDATA[Generated with <see href="http://www.helixoft.com/vsdocman/overview.html">VSdocman</see>]]></add>
|
||||||
|
<add key="VBdocman_comConstant"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_supportedOthers"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_comForm"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_comStructure"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_dontSortSeeAlsoList"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_templateFolder"><![CDATA[$(VSdocmanDir)Templates]]></add>
|
||||||
|
<add key="VBdocman_ConstantValueDisplay"><![CDATA[1]]></add>
|
||||||
|
<add key="VBdocman_helpTitle"><![CDATA[API_NetFramework Reference]]></add>
|
||||||
|
<add key="VBdocman_insertSourceGlobal"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_SupportedNetStandard"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_SupportedXamarinMac"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_comFriend"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_templatePath"><![CDATA[html_msdn2019.vbdt]]></add>
|
||||||
|
<add key="VBdocman_comDeclare"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_conditionalConstants"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_SupportedXamarinAndroid"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_supportedNetForWindowsStoreApps"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_ShowExtensionMethods"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_supportedPortableClassLibrary"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_generateCppSyntax"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_customTopics"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<topics>
|
||||||
|
<topic>
|
||||||
|
<type>normal</type>
|
||||||
|
<is-default>yes</is-default>
|
||||||
|
<name>API_NetFramework Reference</name>
|
||||||
|
<id>api_netframework_reference</id>
|
||||||
|
<comment><![CDATA[<summary></summary>vsdocman_escaped_]_]_></comment>
|
||||||
|
<namespaces />
|
||||||
|
<topics>
|
||||||
|
<topic>
|
||||||
|
<type>placeholder</type>
|
||||||
|
<is-default>no</is-default>
|
||||||
|
<name />
|
||||||
|
<id>da8de385de454790a4d662a82d107fe5</id>
|
||||||
|
<comment><![CDATA[vsdocman_escaped_]_]_></comment>
|
||||||
|
<namespaces />
|
||||||
|
<topics />
|
||||||
|
</topic>
|
||||||
|
</topics>
|
||||||
|
</topic>
|
||||||
|
</topics>]]></add>
|
||||||
|
<add key="VBdocman_generateVbSyntax"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_generateFsharpSyntax"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_comEventDecl"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_GenerateReportFile"><![CDATA[0]]></add>
|
||||||
|
<add key="VBdocman_comEvent"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_rootNamespaceText"><![CDATA[]]></add>
|
||||||
|
<add key="VBdocman_comModulesSaveExcluded"><![CDATA[-1]]></add>
|
||||||
|
<add key="VBdocman_fileNamingConvention"><![CDATA[1]]></add>
|
||||||
|
</appSettings>
|
||||||
|
</configuration>
|
||||||
@ -0,0 +1,165 @@
|
|||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
|
||||||
|
This version of the GNU Lesser General Public License incorporates
|
||||||
|
the terms and conditions of version 3 of the GNU General Public
|
||||||
|
License, supplemented by the additional permissions listed below.
|
||||||
|
|
||||||
|
0. Additional Definitions.
|
||||||
|
|
||||||
|
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||||
|
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||||
|
General Public License.
|
||||||
|
|
||||||
|
"The Library" refers to a covered work governed by this License,
|
||||||
|
other than an Application or a Combined Work as defined below.
|
||||||
|
|
||||||
|
An "Application" is any work that makes use of an interface provided
|
||||||
|
by the Library, but which is not otherwise based on the Library.
|
||||||
|
Defining a subclass of a class defined by the Library is deemed a mode
|
||||||
|
of using an interface provided by the Library.
|
||||||
|
|
||||||
|
A "Combined Work" is a work produced by combining or linking an
|
||||||
|
Application with the Library. The particular version of the Library
|
||||||
|
with which the Combined Work was made is also called the "Linked
|
||||||
|
Version".
|
||||||
|
|
||||||
|
The "Minimal Corresponding Source" for a Combined Work means the
|
||||||
|
Corresponding Source for the Combined Work, excluding any source code
|
||||||
|
for portions of the Combined Work that, considered in isolation, are
|
||||||
|
based on the Application, and not on the Linked Version.
|
||||||
|
|
||||||
|
The "Corresponding Application Code" for a Combined Work means the
|
||||||
|
object code and/or source code for the Application, including any data
|
||||||
|
and utility programs needed for reproducing the Combined Work from the
|
||||||
|
Application, but excluding the System Libraries of the Combined Work.
|
||||||
|
|
||||||
|
1. Exception to Section 3 of the GNU GPL.
|
||||||
|
|
||||||
|
You may convey a covered work under sections 3 and 4 of this License
|
||||||
|
without being bound by section 3 of the GNU GPL.
|
||||||
|
|
||||||
|
2. Conveying Modified Versions.
|
||||||
|
|
||||||
|
If you modify a copy of the Library, and, in your modifications, a
|
||||||
|
facility refers to a function or data to be supplied by an Application
|
||||||
|
that uses the facility (other than as an argument passed when the
|
||||||
|
facility is invoked), then you may convey a copy of the modified
|
||||||
|
version:
|
||||||
|
|
||||||
|
a) under this License, provided that you make a good faith effort to
|
||||||
|
ensure that, in the event an Application does not supply the
|
||||||
|
function or data, the facility still operates, and performs
|
||||||
|
whatever part of its purpose remains meaningful, or
|
||||||
|
|
||||||
|
b) under the GNU GPL, with none of the additional permissions of
|
||||||
|
this License applicable to that copy.
|
||||||
|
|
||||||
|
3. Object Code Incorporating Material from Library Header Files.
|
||||||
|
|
||||||
|
The object code form of an Application may incorporate material from
|
||||||
|
a header file that is part of the Library. You may convey such object
|
||||||
|
code under terms of your choice, provided that, if the incorporated
|
||||||
|
material is not limited to numerical parameters, data structure
|
||||||
|
layouts and accessors, or small macros, inline functions and templates
|
||||||
|
(ten or fewer lines in length), you do both of the following:
|
||||||
|
|
||||||
|
a) Give prominent notice with each copy of the object code that the
|
||||||
|
Library is used in it and that the Library and its use are
|
||||||
|
covered by this License.
|
||||||
|
|
||||||
|
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||||
|
document.
|
||||||
|
|
||||||
|
4. Combined Works.
|
||||||
|
|
||||||
|
You may convey a Combined Work under terms of your choice that,
|
||||||
|
taken together, effectively do not restrict modification of the
|
||||||
|
portions of the Library contained in the Combined Work and reverse
|
||||||
|
engineering for debugging such modifications, if you also do each of
|
||||||
|
the following:
|
||||||
|
|
||||||
|
a) Give prominent notice with each copy of the Combined Work that
|
||||||
|
the Library is used in it and that the Library and its use are
|
||||||
|
covered by this License.
|
||||||
|
|
||||||
|
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||||
|
document.
|
||||||
|
|
||||||
|
c) For a Combined Work that displays copyright notices during
|
||||||
|
execution, include the copyright notice for the Library among
|
||||||
|
these notices, as well as a reference directing the user to the
|
||||||
|
copies of the GNU GPL and this license document.
|
||||||
|
|
||||||
|
d) Do one of the following:
|
||||||
|
|
||||||
|
0) Convey the Minimal Corresponding Source under the terms of this
|
||||||
|
License, and the Corresponding Application Code in a form
|
||||||
|
suitable for, and under terms that permit, the user to
|
||||||
|
recombine or relink the Application with a modified version of
|
||||||
|
the Linked Version to produce a modified Combined Work, in the
|
||||||
|
manner specified by section 6 of the GNU GPL for conveying
|
||||||
|
Corresponding Source.
|
||||||
|
|
||||||
|
1) Use a suitable shared library mechanism for linking with the
|
||||||
|
Library. A suitable mechanism is one that (a) uses at run time
|
||||||
|
a copy of the Library already present on the user's computer
|
||||||
|
system, and (b) will operate properly with a modified version
|
||||||
|
of the Library that is interface-compatible with the Linked
|
||||||
|
Version.
|
||||||
|
|
||||||
|
e) Provide Installation Information, but only if you would otherwise
|
||||||
|
be required to provide such information under section 6 of the
|
||||||
|
GNU GPL, and only to the extent that such information is
|
||||||
|
necessary to install and execute a modified version of the
|
||||||
|
Combined Work produced by recombining or relinking the
|
||||||
|
Application with a modified version of the Linked Version. (If
|
||||||
|
you use option 4d0, the Installation Information must accompany
|
||||||
|
the Minimal Corresponding Source and Corresponding Application
|
||||||
|
Code. If you use option 4d1, you must provide the Installation
|
||||||
|
Information in the manner specified by section 6 of the GNU GPL
|
||||||
|
for conveying Corresponding Source.)
|
||||||
|
|
||||||
|
5. Combined Libraries.
|
||||||
|
|
||||||
|
You may place library facilities that are a work based on the
|
||||||
|
Library side by side in a single library together with other library
|
||||||
|
facilities that are not Applications and are not covered by this
|
||||||
|
License, and convey such a combined library under terms of your
|
||||||
|
choice, if you do both of the following:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work based
|
||||||
|
on the Library, uncombined with any other library facilities,
|
||||||
|
conveyed under the terms of this License.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library that part of it
|
||||||
|
is a work based on the Library, and explaining where to find the
|
||||||
|
accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
6. Revised Versions of the GNU Lesser General Public License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the GNU Lesser General Public License from time to time. Such new
|
||||||
|
versions will be similar in spirit to the present version, but may
|
||||||
|
differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Library as you received it specifies that a certain numbered version
|
||||||
|
of the GNU Lesser General Public License "or any later version"
|
||||||
|
applies to it, you have the option of following the terms and
|
||||||
|
conditions either of that published version or of any later version
|
||||||
|
published by the Free Software Foundation. If the Library as you
|
||||||
|
received it does not specify a version number of the GNU Lesser
|
||||||
|
General Public License, you may choose any version of the GNU Lesser
|
||||||
|
General Public License ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Library as you received it specifies that a proxy can decide
|
||||||
|
whether future versions of the GNU Lesser General Public License shall
|
||||||
|
apply, that proxy's public statement of acceptance of any version is
|
||||||
|
permanent authorization for you to choose that version for the
|
||||||
|
Library.
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
/**
|
||||||
|
* 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.AS3 = function()
|
||||||
|
{
|
||||||
|
// Created by Peter Atoria @ http://iAtoria.com
|
||||||
|
|
||||||
|
var inits = 'class interface function package';
|
||||||
|
|
||||||
|
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
|
||||||
|
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
|
||||||
|
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
|
||||||
|
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
|
||||||
|
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
|
||||||
|
'return set static String super switch this throw true try typeof uint undefined unescape ' +
|
||||||
|
'use void while with'
|
||||||
|
;
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||||
|
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
||||||
|
{ regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||||
|
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
|
||||||
|
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.AS3.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.AS3.aliases = ['actionscript3', 'as3'];
|
||||||
@ -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.Bash = function()
|
||||||
|
{
|
||||||
|
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
|
||||||
|
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
||||||
|
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
||||||
|
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
||||||
|
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
||||||
|
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
|
||||||
|
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
|
||||||
|
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
|
||||||
|
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
|
||||||
|
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
|
||||||
|
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
|
||||||
|
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
|
||||||
|
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
|
||||||
|
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
||||||
|
'vi watch wc whereis which who whoami Wget xargs yes'
|
||||||
|
;
|
||||||
|
|
||||||
|
this.findMatches = function(regexList, code)
|
||||||
|
{
|
||||||
|
code = code.replace(/>/g, '>').replace(/</g, '<');
|
||||||
|
this.code = code;
|
||||||
|
return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
|
||||||
|
};
|
||||||
|
|
||||||
|
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: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||||
|
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
|
||||||
@ -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>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* modified by Helixoft */
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.CSharp = function()
|
||||||
|
{
|
||||||
|
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
||||||
|
'continue decimal default delegate do double else enum event explicit ' +
|
||||||
|
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
||||||
|
'interface internal is lock long namespace new null object operator out ' +
|
||||||
|
'override params private protected public readonly ref return sbyte sealed set ' +
|
||||||
|
'short sizeof stackalloc static string struct switch this throw true try ' +
|
||||||
|
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
||||||
|
|
||||||
|
function fixComments(match, regexInfo)
|
||||||
|
{
|
||||||
|
var css = (match[0].indexOf("///") == 0)
|
||||||
|
? 'color1'
|
||||||
|
: 'comments'
|
||||||
|
;
|
||||||
|
|
||||||
|
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
|
||||||
|
}
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: /\<.*?\>/gm, css: 'skipTag' }, // HTML tag, don't decorate, Helixoft
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
|
||||||
|
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
|
||||||
|
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
|
||||||
|
|
||||||
@ -0,0 +1,102 @@
|
|||||||
|
/**
|
||||||
|
* 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.ColdFusion = function()
|
||||||
|
{
|
||||||
|
// Contributed by Jen
|
||||||
|
// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
|
||||||
|
|
||||||
|
var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
|
||||||
|
'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
|
||||||
|
'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
|
||||||
|
'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
|
||||||
|
'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
|
||||||
|
'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
|
||||||
|
'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
|
||||||
|
'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
|
||||||
|
'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
|
||||||
|
'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
|
||||||
|
'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
|
||||||
|
'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
|
||||||
|
'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
|
||||||
|
'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
|
||||||
|
'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
|
||||||
|
'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
|
||||||
|
'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
|
||||||
|
'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
|
||||||
|
'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
|
||||||
|
'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
|
||||||
|
'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
|
||||||
|
'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
|
||||||
|
'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
|
||||||
|
'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
|
||||||
|
'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
|
||||||
|
'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
|
||||||
|
'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
|
||||||
|
'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
|
||||||
|
'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
|
||||||
|
'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
|
||||||
|
'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
|
||||||
|
'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
|
||||||
|
'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
|
||||||
|
'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
|
||||||
|
'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
|
||||||
|
'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
|
||||||
|
'XmlValidate Year YesNoFormat';
|
||||||
|
|
||||||
|
var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
|
||||||
|
'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
|
||||||
|
'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
|
||||||
|
'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
|
||||||
|
'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
|
||||||
|
'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
|
||||||
|
'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
|
||||||
|
'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
|
||||||
|
'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
|
||||||
|
'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
|
||||||
|
'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
|
||||||
|
'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
|
||||||
|
'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
|
||||||
|
'cfwindow cfxml cfzip cfzipparam';
|
||||||
|
|
||||||
|
var operators = 'all and any between cross in join like not null or outer some';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||||
|
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // 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.ColdFusion.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.ColdFusion.aliases = ['coldfusion','cf'];
|
||||||
@ -0,0 +1,102 @@
|
|||||||
|
/**
|
||||||
|
* 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.Cpp = function()
|
||||||
|
{
|
||||||
|
// Copyright 2006 Shin, YoungJin
|
||||||
|
|
||||||
|
/* modified by Helixoft (added .NET managed C++ keywords) */
|
||||||
|
|
||||||
|
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
|
||||||
|
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
|
||||||
|
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
|
||||||
|
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
|
||||||
|
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
|
||||||
|
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
|
||||||
|
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
|
||||||
|
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
|
||||||
|
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
|
||||||
|
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
|
||||||
|
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
|
||||||
|
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
|
||||||
|
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
|
||||||
|
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
|
||||||
|
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
|
||||||
|
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
|
||||||
|
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
|
||||||
|
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
|
||||||
|
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
|
||||||
|
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
|
||||||
|
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
||||||
|
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
||||||
|
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
||||||
|
'va_list wchar_t wctrans_t wctype_t wint_t signed';
|
||||||
|
|
||||||
|
var keywords = 'break case catch class const __finally __exception __try ' +
|
||||||
|
'const_cast continue private public protected __declspec ' +
|
||||||
|
'default delete deprecated dllexport dllimport do dynamic_cast ' +
|
||||||
|
'else enum explicit extern if for friend goto inline ' +
|
||||||
|
'mutable naked namespace new noinline noreturn nothrow ' +
|
||||||
|
'register reinterpret_cast return selectany ' +
|
||||||
|
'sizeof static static_cast struct switch template this ' +
|
||||||
|
'thread throw true false try typedef typeid typename union ' +
|
||||||
|
'using uuid virtual void volatile whcar_t while abstract sealed property interface';
|
||||||
|
|
||||||
|
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
|
||||||
|
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
|
||||||
|
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
|
||||||
|
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
||||||
|
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
|
||||||
|
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
|
||||||
|
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
|
||||||
|
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
|
||||||
|
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
|
||||||
|
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
|
||||||
|
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
|
||||||
|
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
|
||||||
|
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
|
||||||
|
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
|
||||||
|
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
|
||||||
|
'clock ctime difftime gmtime localtime mktime strftime time';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: /\<.*?\>/gm, css: 'skipTag' }, // HTML tag, don't decorate, Helixoft
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: /^ *#.*/gm, css: 'preprocessor' },
|
||||||
|
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1' },
|
||||||
|
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions' },
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c'];
|
||||||
@ -0,0 +1,93 @@
|
|||||||
|
/**
|
||||||
|
* 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.CSS = function()
|
||||||
|
{
|
||||||
|
function getKeywordsCSS(str)
|
||||||
|
{
|
||||||
|
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
||||||
|
};
|
||||||
|
|
||||||
|
function getValuesCSS(str)
|
||||||
|
{
|
||||||
|
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
||||||
|
};
|
||||||
|
|
||||||
|
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
||||||
|
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
||||||
|
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
||||||
|
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
||||||
|
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
||||||
|
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
||||||
|
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
||||||
|
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
||||||
|
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
||||||
|
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
||||||
|
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
||||||
|
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
||||||
|
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
||||||
|
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
||||||
|
|
||||||
|
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
||||||
|
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
||||||
|
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
|
||||||
|
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
||||||
|
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
||||||
|
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
||||||
|
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
||||||
|
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
||||||
|
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
||||||
|
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
||||||
|
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
||||||
|
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
||||||
|
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
||||||
|
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
||||||
|
|
||||||
|
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||||
|
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
||||||
|
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
|
||||||
|
{ regex: /!important/g, css: 'color3' }, // !important
|
||||||
|
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||||
|
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
||||||
|
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript({
|
||||||
|
left: /(<|<)\s*style.*?(>|>)/gi,
|
||||||
|
right: /(<|<)\/\s*style\s*(>|>)/gi
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.CSS.aliases = ['css'];
|
||||||
@ -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.Delphi = function()
|
||||||
|
{
|
||||||
|
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
|
||||||
|
'case char class comp const constructor currency destructor div do double ' +
|
||||||
|
'downto else end except exports extended false file finalization finally ' +
|
||||||
|
'for function goto if implementation in inherited int64 initialization ' +
|
||||||
|
'integer interface is label library longint longword mod nil not object ' +
|
||||||
|
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
|
||||||
|
'pint64 pointer private procedure program property pshortstring pstring ' +
|
||||||
|
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
|
||||||
|
'record repeat set shl shortint shortstring shr single smallint string then ' +
|
||||||
|
'threadvar to true try type unit until uses val var varirnt while widechar ' +
|
||||||
|
'widestring with word write writeln xor';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
|
||||||
|
{ regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
|
||||||
|
{ regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
|
||||||
|
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal', 'pas'];
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
/**
|
||||||
|
* 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.Diff = function()
|
||||||
|
{
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
|
||||||
|
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
|
||||||
|
{ regex: /^\s.*$/gm, css: 'color1' },
|
||||||
|
{ regex: /^@@.*@@$/gm, css: 'variable' },
|
||||||
|
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
|
||||||
|
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch'];
|
||||||
@ -0,0 +1,54 @@
|
|||||||
|
/**
|
||||||
|
* 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.Erlang = function()
|
||||||
|
{
|
||||||
|
// Contributed by Jean-Lou Dupont
|
||||||
|
// http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
|
||||||
|
|
||||||
|
// According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
|
||||||
|
var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
|
||||||
|
'case catch cond div end fun if let not of or orelse '+
|
||||||
|
'query receive rem try when xor'+
|
||||||
|
// additional
|
||||||
|
' module export import define';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
|
||||||
|
{ regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
|
||||||
|
{ regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
|
||||||
|
{ regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Erlang.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Erlang.aliases = ['erl', 'erlang'];
|
||||||
@ -0,0 +1,69 @@
|
|||||||
|
/**
|
||||||
|
* 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.Groovy = function()
|
||||||
|
{
|
||||||
|
// Contributed by Andres Almiray
|
||||||
|
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
|
||||||
|
|
||||||
|
var keywords = 'as assert break case catch class continue def default do else extends finally ' +
|
||||||
|
'if in implements import instanceof interface new package property return switch ' +
|
||||||
|
'throw throws try while public protected private static';
|
||||||
|
var types = 'void boolean byte char short int long float double';
|
||||||
|
var constants = 'null';
|
||||||
|
var methods = 'allProperties count get size '+
|
||||||
|
'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
|
||||||
|
'findIndexOf grep inject max min reverseEach sort ' +
|
||||||
|
'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
|
||||||
|
'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
|
||||||
|
'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
|
||||||
|
'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
|
||||||
|
'transformChar transformLine withOutputStream withPrintWriter withStream ' +
|
||||||
|
'withStreams withWriter withWriterAppend write writeLine '+
|
||||||
|
'dump inspect invokeMethod print println step times upto use waitForOrKill '+
|
||||||
|
'getText';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: /""".*"""/g, css: 'string' }, // GStrings
|
||||||
|
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
|
||||||
|
{ regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
|
||||||
|
{ regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
|
||||||
|
{ regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||||
|
}
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Groovy.aliases = ['groovy'];
|
||||||
@ -0,0 +1,59 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* modified by Helixoft */
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.JScript = function()
|
||||||
|
{
|
||||||
|
var keywords = 'break case catch continue ' +
|
||||||
|
'default delete do else false ' +
|
||||||
|
'for function if in instanceof ' +
|
||||||
|
'new null return super switch ' +
|
||||||
|
'this throw true try typeof var while with ' +
|
||||||
|
'int float object short long DateTime decimal byte char double boolean ' +
|
||||||
|
'private protected public internal static final abstract const readonly ' +
|
||||||
|
'class implements interface'
|
||||||
|
;
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: /\<.*?\>/gm, css: 'skipTag' }, // HTML tag, don't decorate, Helixoft
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||||
|
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
|
||||||
@ -0,0 +1,59 @@
|
|||||||
|
/**
|
||||||
|
* 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.Java = function()
|
||||||
|
{
|
||||||
|
var keywords = 'abstract assert boolean break byte case catch char class const ' +
|
||||||
|
'continue default do double else enum extends ' +
|
||||||
|
'false final finally float for goto if implements import ' +
|
||||||
|
'instanceof int interface long native new null ' +
|
||||||
|
'package private protected public return ' +
|
||||||
|
'short static strictfp super switch synchronized this throw throws true ' +
|
||||||
|
'transient try void volatile while';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||||
|
{ regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||||
|
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
||||||
|
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
|
||||||
|
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript({
|
||||||
|
left : /(<|<)%[@!=]?/g,
|
||||||
|
right : /%(>|>)/g
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Java.aliases = ['java'];
|
||||||
@ -0,0 +1,60 @@
|
|||||||
|
/**
|
||||||
|
* 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.JavaFX = function()
|
||||||
|
{
|
||||||
|
// Contributed by Patrick Webster
|
||||||
|
// http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
|
||||||
|
var datatypes = 'Boolean Byte Character Double Duration '
|
||||||
|
+ 'Float Integer Long Number Short String Void'
|
||||||
|
;
|
||||||
|
|
||||||
|
var keywords = 'abstract after and as assert at before bind bound break catch class '
|
||||||
|
+ 'continue def delete else exclusive extends false finally first for from '
|
||||||
|
+ 'function if import in indexof init insert instanceof into inverse last '
|
||||||
|
+ 'lazy mixin mod nativearray new not null on or override package postinit '
|
||||||
|
+ 'protected public public-init public-read replace return reverse sizeof '
|
||||||
|
+ 'step super then this throw true try tween typeof var where while with '
|
||||||
|
+ 'attribute let private readonly static trigger'
|
||||||
|
;
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||||
|
{ regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
|
||||||
|
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||||
|
];
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx'];
|
||||||
@ -0,0 +1,74 @@
|
|||||||
|
/**
|
||||||
|
* 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.Perl = function()
|
||||||
|
{
|
||||||
|
// Contributed by David Simmons-Duffin and Marty Kube
|
||||||
|
|
||||||
|
var funcs =
|
||||||
|
'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
|
||||||
|
'chroot close closedir connect cos crypt defined delete each endgrent ' +
|
||||||
|
'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
|
||||||
|
'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
|
||||||
|
'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
|
||||||
|
'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
|
||||||
|
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
||||||
|
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
||||||
|
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
||||||
|
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
||||||
|
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
||||||
|
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
||||||
|
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
||||||
|
'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
|
||||||
|
'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
|
||||||
|
'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
|
||||||
|
'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
|
||||||
|
'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
|
||||||
|
'undef unlink unpack unshift utime values vec wait waitpid warn write';
|
||||||
|
|
||||||
|
var keywords =
|
||||||
|
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
|
||||||
|
'for foreach goto if import last local my next no our package redo ref ' +
|
||||||
|
'require return sub tie tied unless untie until use wantarray while';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
|
||||||
|
{ regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||||
|
{ regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
|
||||||
|
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||||
|
}
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl'];
|
||||||
@ -0,0 +1,91 @@
|
|||||||
|
/**
|
||||||
|
* 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.Php = function()
|
||||||
|
{
|
||||||
|
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
||||||
|
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
||||||
|
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
||||||
|
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
||||||
|
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
||||||
|
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
||||||
|
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
||||||
|
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
||||||
|
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
||||||
|
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
||||||
|
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
||||||
|
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
||||||
|
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
||||||
|
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
||||||
|
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
||||||
|
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
||||||
|
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
||||||
|
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
||||||
|
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
||||||
|
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
||||||
|
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
||||||
|
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
||||||
|
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
||||||
|
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
||||||
|
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
||||||
|
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
||||||
|
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
||||||
|
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
||||||
|
'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+
|
||||||
|
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
||||||
|
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
||||||
|
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
||||||
|
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
||||||
|
'strtoupper strtr strval substr substr_compare';
|
||||||
|
|
||||||
|
var keywords = 'and or xor array as break case ' +
|
||||||
|
'cfunction class const continue declare default die do else ' +
|
||||||
|
'elseif enddeclare endfor endforeach endif endswitch endwhile ' +
|
||||||
|
'extends for foreach function include include_once global if ' +
|
||||||
|
'new old_function return static switch use require require_once ' +
|
||||||
|
'var while abstract interface public implements extends private protected throw';
|
||||||
|
|
||||||
|
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||||
|
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||||
|
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
||||||
|
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
||||||
|
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
||||||
|
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||||
|
};
|
||||||
|
|
||||||
|
SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter();
|
||||||
|
SyntaxHighlighter.brushes.Php.aliases = ['php'];
|
||||||
@ -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'];
|
||||||
@ -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'];
|
||||||
@ -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: /^\s*@\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'];
|
||||||
@ -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'];
|
||||||
@ -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'];
|
||||||
@ -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'];
|
||||||
|
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* modified by Helixoft */
|
||||||
|
|
||||||
|
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 Out ' +
|
||||||
|
'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: 'skipTag' }, // HTML tag, don't decorate, Helixoft
|
||||||
|
{ 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'];
|
||||||
@ -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'];
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?<o>\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i<z.g;i++){7((x=V.17(z[i]))!=2){4 x.o}}4 2};6 3(r,U){4 r!=2?r:U};6 9(s){4 s!=2?s.13():2};1 f=S.18(":"),E=f[0],c={},u={"p":"p"};C={"p":"1a"},v=2,5=d.5;h(1 i 19 f){c[f[i]]="p"}l=9(3(l,5.O));q=9(3(q,5.T));k=9(3(k,5.A));n=9(3(n,5.W));m=9(3(m,5["K-L"]));v={1b:E,O:3(C[c.12],l),T:3(C[c.1g],q),A:3(u[c.A],k),W:3(u[c.1t],n),"K-L":3(J(f,"1q"),m)};4 v},1x:6(B,I,D,H,N,M){6 Z(){1 a=1r;h(1 i=0;i<a.g;i++){7(a[i]===2){10}7(G(a[i])=="1s"&&a[i]!=""){4 a[i]+""}7(G(a[i])=="1c"&&a[i].o!=""){4 a[i].o+""}}4 2};6 t(Q,R,11){1 j=1w.1v(11);h(1 i=0;i<j.g;i++){7(j[i].1u("1p")==R){Q.1n(j[i])}}};1 b=[],1o=2,1f={},1e="1d";t(b,B,"1h");t(b,B,"1i");7(b.g===0){4}h(1 i=0;i<b.g;i++){1 8=b[i],e=Z(8.X["1m"],8.1l,8.X["P"],8.P),1k="";7(e===2){10}e=y.d.F(e,I,D,H,N,M);d.1j(e,8)}}};',62,96,'|var|null|defaultValue|return|defaults|function|if|_26|asString||_21|_11|SyntaxHighlighter|_27|_f|length|for||_1f|_4|_2|_5|_6|value|true|_3|_c|_e|findTagsByName|_12|result||_a|dp|_7|collapse|_14|reverse|_16|_10|parseParams|typeof|_17|_15|getValue|first|line|_19|_18|gutter|language|_1c|_1d|_1|toolbar|_d|_9|ruler|attributes|_8|findValue|continue|_1e|nogutter|toString|gi|XRegExp|new|exec|split|in|false|brush|object|innerHTML|_24|_23|nocontrols|pre|textarea|highlight|_28|className|class|push|_22|name|firstline|arguments|string|showcolumns|getAttribute|getElementsByTagName|document|HighlightAll'.split('|'),0,{}))
|
||||||
@ -0,0 +1,172 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
var dp = {
|
||||||
|
SyntaxHighlighter : {}
|
||||||
|
};
|
||||||
|
|
||||||
|
dp.SyntaxHighlighter = {
|
||||||
|
parseParams: function(
|
||||||
|
input,
|
||||||
|
showGutter,
|
||||||
|
showControls,
|
||||||
|
collapseAll,
|
||||||
|
firstLine,
|
||||||
|
showColumns
|
||||||
|
)
|
||||||
|
{
|
||||||
|
function getValue(list, name)
|
||||||
|
{
|
||||||
|
var regex = new XRegExp('^' + name + '\\[(?<value>\\w+)\\]$', 'gi'),
|
||||||
|
match = null
|
||||||
|
;
|
||||||
|
|
||||||
|
for (var i = 0; i < list.length; i++)
|
||||||
|
if ((match = regex.exec(list[i])) != null)
|
||||||
|
return match.value;
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
function defaultValue(value, def)
|
||||||
|
{
|
||||||
|
return value != null ? value : def;
|
||||||
|
};
|
||||||
|
|
||||||
|
function asString(value)
|
||||||
|
{
|
||||||
|
return value != null ? value.toString() : null;
|
||||||
|
};
|
||||||
|
|
||||||
|
var parts = input.split(':'),
|
||||||
|
brushName = parts[0],
|
||||||
|
options = {},
|
||||||
|
straight = { 'true' : 'true' }
|
||||||
|
reverse = { 'true' : 'false' },
|
||||||
|
result = null,
|
||||||
|
defaults = SyntaxHighlighter.defaults
|
||||||
|
;
|
||||||
|
|
||||||
|
for (var i in parts)
|
||||||
|
options[parts[i]] = 'true';
|
||||||
|
|
||||||
|
showGutter = asString(defaultValue(showGutter, defaults.gutter));
|
||||||
|
showControls = asString(defaultValue(showControls, defaults.toolbar));
|
||||||
|
collapseAll = asString(defaultValue(collapseAll, defaults.collapse));
|
||||||
|
showColumns = asString(defaultValue(showColumns, defaults.ruler));
|
||||||
|
firstLine = asString(defaultValue(firstLine, defaults['first-line']));
|
||||||
|
|
||||||
|
result = {
|
||||||
|
brush : brushName,
|
||||||
|
gutter : defaultValue(reverse[options.nogutter], showGutter),
|
||||||
|
toolbar : defaultValue(reverse[options.nocontrols], showControls),
|
||||||
|
collapse : defaultValue(straight[options.collapse], collapseAll),
|
||||||
|
ruler : defaultValue(straight[options.showcolumns], showColumns),
|
||||||
|
'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine)
|
||||||
|
};
|
||||||
|
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
|
||||||
|
HighlightAll: function(
|
||||||
|
name,
|
||||||
|
showGutter /* optional */,
|
||||||
|
showControls /* optional */,
|
||||||
|
collapseAll /* optional */,
|
||||||
|
firstLine /* optional */,
|
||||||
|
showColumns /* optional */
|
||||||
|
)
|
||||||
|
{
|
||||||
|
function findValue()
|
||||||
|
{
|
||||||
|
var a = arguments;
|
||||||
|
|
||||||
|
for (var i = 0; i < a.length; i++)
|
||||||
|
{
|
||||||
|
if (a[i] === null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (typeof(a[i]) == 'string' && a[i] != '')
|
||||||
|
return a[i] + '';
|
||||||
|
|
||||||
|
if (typeof(a[i]) == 'object' && a[i].value != '')
|
||||||
|
return a[i].value + '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
function findTagsByName(list, name, tagName)
|
||||||
|
{
|
||||||
|
var tags = document.getElementsByTagName(tagName);
|
||||||
|
|
||||||
|
for (var i = 0; i < tags.length; i++)
|
||||||
|
if (tags[i].getAttribute('name') == name)
|
||||||
|
list.push(tags[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
var elements = [],
|
||||||
|
highlighter = null,
|
||||||
|
registered = {},
|
||||||
|
propertyName = 'innerHTML'
|
||||||
|
;
|
||||||
|
|
||||||
|
// for some reason IE doesn't find <pre/> by name, however it does see them just fine by tag name...
|
||||||
|
findTagsByName(elements, name, 'pre');
|
||||||
|
findTagsByName(elements, name, 'textarea');
|
||||||
|
|
||||||
|
if (elements.length === 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (var i = 0; i < elements.length; i++)
|
||||||
|
{
|
||||||
|
var element = elements[i],
|
||||||
|
params = findValue(
|
||||||
|
element.attributes['class'], element.className,
|
||||||
|
element.attributes['language'], element.language
|
||||||
|
),
|
||||||
|
language = ''
|
||||||
|
;
|
||||||
|
|
||||||
|
if (params === null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
params = dp.SyntaxHighlighter.parseParams(
|
||||||
|
params,
|
||||||
|
showGutter,
|
||||||
|
showControls,
|
||||||
|
collapseAll,
|
||||||
|
firstLine,
|
||||||
|
showColumns
|
||||||
|
);
|
||||||
|
|
||||||
|
SyntaxHighlighter.highlight(params, element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
After Width: | Height: | Size: 786 B |
|
After Width: | Height: | Size: 615 B |
|
After Width: | Height: | Size: 603 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 731 B |
@ -0,0 +1,330 @@
|
|||||||
|
/**
|
||||||
|
* 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,
|
||||||
|
.syntaxhighlighter div,
|
||||||
|
.syntaxhighlighter code,
|
||||||
|
.syntaxhighlighter table,
|
||||||
|
.syntaxhighlighter table td,
|
||||||
|
.syntaxhighlighter table tr,
|
||||||
|
.syntaxhighlighter table tbody
|
||||||
|
{
|
||||||
|
margin: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
border: 0 !important;
|
||||||
|
outline: 0 !important;
|
||||||
|
background: none !important;
|
||||||
|
text-align: left !important;
|
||||||
|
float: none !important;
|
||||||
|
vertical-align: baseline !important;
|
||||||
|
position: static !important;
|
||||||
|
left: auto !important;
|
||||||
|
top: auto !important;
|
||||||
|
right: auto !important;
|
||||||
|
bottom: auto !important;
|
||||||
|
height: auto !important;
|
||||||
|
width: auto !important;
|
||||||
|
line-height: 1.1em !important;
|
||||||
|
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
font-style: normal !important;
|
||||||
|
font-size: 1em !important;
|
||||||
|
min-height: inherit !important; /* For IE8, FF & WebKit */
|
||||||
|
min-height: auto !important; /* For IE7 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
width: 99% !important; /* 99% fixes IE8 horizontal scrollbar */
|
||||||
|
margin: 1em 0 1em 0 !important;
|
||||||
|
padding: 1px !important; /* adds a little border on top and bottom */
|
||||||
|
position: relative !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .bold
|
||||||
|
{
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .italic
|
||||||
|
{
|
||||||
|
font-style: italic !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .no-wrap .line .content
|
||||||
|
{
|
||||||
|
white-space: pre !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line table
|
||||||
|
{
|
||||||
|
border-collapse: collapse !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line td
|
||||||
|
{
|
||||||
|
vertical-align: top !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
width: 3em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line .number code
|
||||||
|
{
|
||||||
|
width: 2.7em !important;
|
||||||
|
padding-right: .3em !important;
|
||||||
|
text-align: right !important;
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
padding-left: .5em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .line .spaces
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Disable border and margin on the lines when no gutter option is set */
|
||||||
|
.syntaxhighlighter.nogutter .line .content
|
||||||
|
{
|
||||||
|
border-left: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .bar
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .bar.show
|
||||||
|
{
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.collapsed .bar
|
||||||
|
{
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Adjust some properties when collapsed */
|
||||||
|
|
||||||
|
.syntaxhighlighter.collapsed .lines
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .lines.no-wrap
|
||||||
|
{
|
||||||
|
overflow: auto !important;
|
||||||
|
overflow-y: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Styles for the toolbar */
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
position: absolute !important;
|
||||||
|
right: 0px !important;
|
||||||
|
top: 0px !important;
|
||||||
|
font-size: 1px !important;
|
||||||
|
padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.collapsed .toolbar
|
||||||
|
{
|
||||||
|
font-size: 80% !important;
|
||||||
|
padding: .2em 0 .5em .5em !important;
|
||||||
|
position: static !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a.item,
|
||||||
|
.syntaxhighlighter .toolbar .item
|
||||||
|
{
|
||||||
|
display: block !important;
|
||||||
|
float: left !important;
|
||||||
|
margin-left: 8px !important;
|
||||||
|
background-repeat: no-repeat !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
text-indent: -5000px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.collapsed .toolbar .item
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.collapsed .toolbar .item.expandSource
|
||||||
|
{
|
||||||
|
background-image: url(magnifier.png) !important;
|
||||||
|
display: inline !important;
|
||||||
|
text-indent: 0 !important;
|
||||||
|
width: auto !important;
|
||||||
|
float: none !important;
|
||||||
|
height: 16px !important;
|
||||||
|
padding-left: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar .item.viewSource
|
||||||
|
{
|
||||||
|
background-image: url(page_white_code.png) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar .item.printSource
|
||||||
|
{
|
||||||
|
background-image: url(printer.png) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar .item.copyToClipboard
|
||||||
|
{
|
||||||
|
text-indent: 0 !important;
|
||||||
|
background: none !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar .item.about
|
||||||
|
{
|
||||||
|
background-image: url(help.png) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print view.
|
||||||
|
* Colors are based on the default theme without background.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing,
|
||||||
|
.syntaxhighlighter.printing .line.alt1 .content,
|
||||||
|
.syntaxhighlighter.printing .line.alt2 .content,
|
||||||
|
.syntaxhighlighter.printing .line.highlighted .number,
|
||||||
|
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
||||||
|
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
|
||||||
|
{
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter.printing .line .number
|
||||||
|
{
|
||||||
|
color: #bbb !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toolbar when visible */
|
||||||
|
.syntaxhighlighter.printing .toolbar
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing a
|
||||||
|
{
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .plain,
|
||||||
|
.syntaxhighlighter.printing .plain a
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .comments,
|
||||||
|
.syntaxhighlighter.printing .comments a
|
||||||
|
{
|
||||||
|
color: #008200 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .string,
|
||||||
|
.syntaxhighlighter.printing .string a
|
||||||
|
{
|
||||||
|
color: blue !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .keyword
|
||||||
|
{
|
||||||
|
color: #069 !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .preprocessor
|
||||||
|
{
|
||||||
|
color: gray !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .variable
|
||||||
|
{
|
||||||
|
color: #a70 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .functions
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .constants
|
||||||
|
{
|
||||||
|
color: #0066CC !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .script
|
||||||
|
{
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .color1,
|
||||||
|
.syntaxhighlighter.printing .color1 a
|
||||||
|
{
|
||||||
|
color: #808080 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .color2,
|
||||||
|
.syntaxhighlighter.printing .color2 a
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .color3,
|
||||||
|
.syntaxhighlighter.printing .color3 a
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,173 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/************************************
|
||||||
|
* Default Syntax Highlighter theme.
|
||||||
|
*
|
||||||
|
* Interface elements.
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
color: black !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #e0e0e0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #afafaf !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 3px solid #6CE26C !important;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #F8F8F8 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #F8F8F8 !important;
|
||||||
|
border: #E7E5DC solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #a0a0a0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #008200 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: blue !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #069 !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: gray !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #a70 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #0066CC !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: yellow !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #808080 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,176 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Django SyntaxHighlighter theme
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Interface elements.
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #0B2F20 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #497958 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 3px solid #41A83E !important;
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #0a2b1d !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
background-color: #336442 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #336442 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #245032 !important;
|
||||||
|
border: #0B2F20 solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #C4B14A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: #FFE862 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #F8F8F8 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #336442 !important;
|
||||||
|
font-style: italic !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: #9DF39F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #96DD3B !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #91BB9E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #F7E741 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #E0E8FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: #497958 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #EB939A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #91BB9E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: #EDEF7D !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,190 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Eclipse IDE SyntaxHighlighter color theme
|
||||||
|
* (C) Code-House
|
||||||
|
* http://blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/
|
||||||
|
*/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
background-color: #c3defe !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #c3defe !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #787878 !important;
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 1px solid #d4d0c8 !important;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #F8F8F8 !important;
|
||||||
|
border: #E7E5DC solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #a0a0a0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #3f5fbf !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: #2a00ff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #7f0055 !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #646464 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #a70 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #0066CC !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: yellow !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #808080 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.xml .keyword {
|
||||||
|
color: #3f7f7f !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xml .color1,
|
||||||
|
.xml .color1 a{
|
||||||
|
color: #7f007f !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xml .string {
|
||||||
|
font-style: italic !important;
|
||||||
|
color: #2a00ff !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,175 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
|
||||||
|
* http://www.skia.net/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Interface elements.
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #000000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #D3D3D3 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 3px solid #990000 !important;
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #0f0f0f !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
background-color: #435A5F !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #435A5F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #000000 !important;
|
||||||
|
border: #000000 solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #646763 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: #9CCFF4 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #D3D3D3 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #FF7D27 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: #FF9E7B !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #00FFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #AEC4DE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #81CEF9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #FF9E7B !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: #990000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #EBDB8D !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #FF7D27 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: #AEC4DE !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,177 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
|
||||||
|
* http://www.ibrasten.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Interface elements.
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #121212 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #C3C3C3 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 3px solid #3185B9 !important;
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #000000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
background-color: #3A3A00 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #3A3A00 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #000000 !important;
|
||||||
|
border: #000000 solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #808080 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: #96DAFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #696854 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: #E3E658 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #D01D33 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #435A5F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #898989 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #AAAAAA !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #96DAFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: #C3C3C3 !important;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #FFC074 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #4A8CDB !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: #96DAFF !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,175 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Midnight SyntaxHighlighter theme based on theme by J.D. Myers
|
||||||
|
* http://webdesign.lsnjd.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Interface elements.
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #0F192A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #38566F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 3px solid #435A5F !important;
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
background-color: #0F192A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #0F192A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
background-color: #253E5A !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #253E5A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #0F192A !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #38566F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: #8AA6C1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #D1EDFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #428BDD !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: #1DC116 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #B43D3D !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #8AA6C1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #F7E741 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #E0E8FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: #404040 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #F8BB00 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,209 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* MSDN lightweight Syntax Highlighter theme.
|
||||||
|
*
|
||||||
|
* by Helixoft
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter,
|
||||||
|
.syntaxhighlighter div,
|
||||||
|
.syntaxhighlighter code,
|
||||||
|
.syntaxhighlighter table,
|
||||||
|
.syntaxhighlighter table td,
|
||||||
|
.syntaxhighlighter table tr,
|
||||||
|
.syntaxhighlighter table tbody
|
||||||
|
{
|
||||||
|
line-height: normal !important;
|
||||||
|
font-family: Consolas,Courier,monospace !important;
|
||||||
|
font-style: normal !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
margin: 0.3em 0 0.4em 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
color: black !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #e0e0e0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #afafaf !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 0px !important;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #F8F8F8 !important;
|
||||||
|
border: #E7E5DC solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #a0a0a0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.syntaxhighlighter a,
|
||||||
|
.syntaxhighlighter a:link,
|
||||||
|
.syntaxhighlighter a:visited
|
||||||
|
{
|
||||||
|
text-decoration: underline !important;
|
||||||
|
color: #0000FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter a:hover
|
||||||
|
{
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: rgb(0,128,0) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: rgb(163,21,21) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword,
|
||||||
|
.syntaxhighlighter .keyword a
|
||||||
|
{
|
||||||
|
color: #0000FF !important;
|
||||||
|
/*font-weight: bold !important;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #0000FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #a70 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #0066CC !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: yellow !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #0000FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,175 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* RDark SyntaxHighlighter theme based on theme by Radu Dineiu
|
||||||
|
* http://www.vim.org/scripts/script.php?script_id=1732
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Interface elements.
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: #1B2426 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 3px solid #435A5F !important;
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
background-color: #1B2426 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: #1B2426 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
background-color: #435A5F !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #435A5F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #1B2426 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #646763 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: #E0E8FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #B9BDB6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: #878A85 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: #5CE638 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword
|
||||||
|
{
|
||||||
|
color: #5BA1CF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #435A5F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #E0E8FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: #435A5F !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #E0E8FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: #FFAA3E !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,208 @@
|
|||||||
|
/**
|
||||||
|
* 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>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Visual Studio Syntax Highlighter theme.
|
||||||
|
*
|
||||||
|
* by Helixoft
|
||||||
|
************************************/
|
||||||
|
|
||||||
|
.syntaxhighlighter,
|
||||||
|
.syntaxhighlighter div,
|
||||||
|
.syntaxhighlighter code,
|
||||||
|
.syntaxhighlighter table,
|
||||||
|
.syntaxhighlighter table td,
|
||||||
|
.syntaxhighlighter table tr,
|
||||||
|
.syntaxhighlighter table tbody
|
||||||
|
{
|
||||||
|
font-family: Monospace, Courier New, Courier !important;
|
||||||
|
line-height: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
font-size: 105% !important;
|
||||||
|
margin: 0.3em 0 0.4em 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.syntaxhighlighter
|
||||||
|
{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line number */
|
||||||
|
.syntaxhighlighter .line.highlighted .number
|
||||||
|
{
|
||||||
|
color: black !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlighed line */
|
||||||
|
.syntaxhighlighter .line.highlighted.alt1,
|
||||||
|
.syntaxhighlighter .line.highlighted.alt2
|
||||||
|
{
|
||||||
|
background-color: #e0e0e0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter line numbers */
|
||||||
|
.syntaxhighlighter .line .number
|
||||||
|
{
|
||||||
|
color: #afafaf !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add border to the lines */
|
||||||
|
.syntaxhighlighter .line .content
|
||||||
|
{
|
||||||
|
border-left: 0px !important;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter.printing .line .content
|
||||||
|
{
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* First line */
|
||||||
|
.syntaxhighlighter .line.alt1
|
||||||
|
{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Second line */
|
||||||
|
.syntaxhighlighter .line.alt2
|
||||||
|
{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar
|
||||||
|
{
|
||||||
|
background-color: #F8F8F8 !important;
|
||||||
|
border: #E7E5DC solid 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a
|
||||||
|
{
|
||||||
|
color: #a0a0a0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .toolbar a:hover
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.syntaxhighlighter a,
|
||||||
|
.syntaxhighlighter a:link,
|
||||||
|
.syntaxhighlighter a:visited
|
||||||
|
{
|
||||||
|
text-decoration: underline !important;
|
||||||
|
color: #0000FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter a:hover
|
||||||
|
{
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************************
|
||||||
|
* Actual syntax highlighter colors.
|
||||||
|
************************************/
|
||||||
|
.syntaxhighlighter .plain,
|
||||||
|
.syntaxhighlighter .plain a
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .comments,
|
||||||
|
.syntaxhighlighter .comments a
|
||||||
|
{
|
||||||
|
color: rgb(0,128,0) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .string,
|
||||||
|
.syntaxhighlighter .string a
|
||||||
|
{
|
||||||
|
color: rgb(163,21,21) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .keyword,
|
||||||
|
.syntaxhighlighter .keyword a
|
||||||
|
{
|
||||||
|
color: #0000FF !important;
|
||||||
|
/*font-weight: bold !important;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .preprocessor
|
||||||
|
{
|
||||||
|
color: #0000FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .variable
|
||||||
|
{
|
||||||
|
color: #a70 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .value
|
||||||
|
{
|
||||||
|
color: #090 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .functions
|
||||||
|
{
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .constants
|
||||||
|
{
|
||||||
|
color: #0066CC !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .script
|
||||||
|
{
|
||||||
|
background-color: yellow !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color1,
|
||||||
|
.syntaxhighlighter .color1 a
|
||||||
|
{
|
||||||
|
color: #0000FF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color2,
|
||||||
|
.syntaxhighlighter .color2 a
|
||||||
|
{
|
||||||
|
color: #ff1493 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.syntaxhighlighter .color3,
|
||||||
|
.syntaxhighlighter .color3 a
|
||||||
|
{
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="icon" href="favicon.ico">
|
||||||
|
<title>Default page</title>
|
||||||
|
<META http-equiv="refresh" content="0;URL=topic_00000000000000C7.html">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="vsdocman_overrides.css">
|
||||||
|
</head>
|
||||||
|
<body style="direction: ltr;">
|
||||||
|
<center>
|
||||||
|
<a href="topic_00000000000000C7.html">Go to default page</a>
|
||||||
|
</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="icon" href="favicon.ico">
|
||||||
|
<title>Default page</title>
|
||||||
|
<META http-equiv="refresh" content="0;URL=topic_00000000000000C7.html">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="vsdocman_overrides.css">
|
||||||
|
</head>
|
||||||
|
<body style="direction: ltr;">
|
||||||
|
<center>
|
||||||
|
<a href="topic_00000000000000C7.html">Go to default page</a>
|
||||||
|
</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,141 @@
|
|||||||
|
/* CHM (IE11) overrides for msdn2019.css */
|
||||||
|
|
||||||
|
/*********** Apply the values of the CSS variables from msdn2019.css explicitly. The CSS variables are not supported in IE 11 used by CHM viewer. */
|
||||||
|
/*#region Common */
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #1364c4;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
color: #1364c4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*#endregion Common */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*#region HEADER */
|
||||||
|
|
||||||
|
|
||||||
|
#header-top-container {
|
||||||
|
background-color: #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*#endregion HEADER end */
|
||||||
|
|
||||||
|
|
||||||
|
.metadata {
|
||||||
|
color: #5e5e5e;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div#footer {
|
||||||
|
background-color: #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
background-color: #d7eaf8;
|
||||||
|
border: 1px solid #d7eaf8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*#region Tables in main text */
|
||||||
|
|
||||||
|
div#mainSection table {
|
||||||
|
border: 1px #cccccc solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div#mainSection table th {
|
||||||
|
border: 1px #cccccc solid;
|
||||||
|
background-color: #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mainSection table td {
|
||||||
|
border: 1px #cccccc solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* members list table, no vertical borders*/
|
||||||
|
|
||||||
|
div#mainSection table.memberListTable {
|
||||||
|
border-top: 0px #e3e3e3 none;
|
||||||
|
border-bottom: 1px #e3e3e3 solid;
|
||||||
|
border-left: 0px #e3e3e3 none;
|
||||||
|
border-right: 0px #e3e3e3 none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mainSection table.memberListTable th {
|
||||||
|
border-top: 0px #e3e3e3 none;
|
||||||
|
border-bottom: 1px #e3e3e3 solid;
|
||||||
|
border-left: 0px #e3e3e3 none;
|
||||||
|
border-right: 0px #e3e3e3 none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div #mainSection table.memberListTable td {
|
||||||
|
border-top: 1px #e3e3e3 solid;
|
||||||
|
border-bottom: 1px #e3e3e3 solid;
|
||||||
|
border-left: 0px #e3e3e3 none;
|
||||||
|
border-right: 0px #e3e3e3 none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*#endregion */
|
||||||
|
|
||||||
|
|
||||||
|
/*#region Code snippets */
|
||||||
|
|
||||||
|
.codeSnippetTabs {
|
||||||
|
height: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeSnippetTab {
|
||||||
|
height: 1.5rem;
|
||||||
|
border-top: 1px solid #e3e3e3;
|
||||||
|
border-bottom: 0px none #e3e3e3;
|
||||||
|
border-left: 1px solid #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.csFirstTab {
|
||||||
|
border-left: 0px solid #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeSnippetTabLeftCorner, .codeSnippetTabLeftCornerActive {
|
||||||
|
height: 1.5rem;
|
||||||
|
border-top: 1px solid #e3e3e3;
|
||||||
|
border-bottom: 0px none #e3e3e3;
|
||||||
|
border-left: 1px solid #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeSnippetTabRightCorner, .codeSnippetTabRightCornerActive {
|
||||||
|
height: 1.5rem;
|
||||||
|
border-top: 1px solid #e3e3e3;
|
||||||
|
border-bottom: 0px none #e3e3e3;
|
||||||
|
border-right: 1px solid #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeSnippetCodeCollection {
|
||||||
|
border-top: solid 1px #e3e3e3;
|
||||||
|
border-right: solid 1px #e3e3e3;
|
||||||
|
border-bottom: solid 1px #e3e3e3;
|
||||||
|
border-left: solid 1px #e3e3e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codeSnippetToolbar {
|
||||||
|
top: calc(1.5rem * -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*#endregion Code snippets */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/************ Hide breadcrumbs */
|
||||||
|
#header-breadcrumbs {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#headerLinks {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
@ -0,0 +1,993 @@
|
|||||||
|
// #region PAGE INIT ***********************
|
||||||
|
|
||||||
|
|
||||||
|
// Event handler attachment
|
||||||
|
function registerEventHandler(element, event, handler) {
|
||||||
|
if (element.addEventListener) {
|
||||||
|
element.addEventListener(event, handler, false);
|
||||||
|
} else if (element.attachEvent) {
|
||||||
|
element.attachEvent('on' + event, handler);
|
||||||
|
} else {
|
||||||
|
element[event] = handler;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Event handler detachment
|
||||||
|
function unregisterEventHandler(element, event, handler) {
|
||||||
|
if (typeof element.removeEventListener === "function")
|
||||||
|
element.removeEventListener(event, handler, false);
|
||||||
|
else
|
||||||
|
element.detachEvent("on" + event, handler);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Scroll handler.
|
||||||
|
* @type {function()}
|
||||||
|
*/
|
||||||
|
function scrollHandler() {
|
||||||
|
inPageTocElementMakeStickyOnScroll();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
registerEventHandler(window, 'load', init);
|
||||||
|
registerEventHandler(window, 'scroll', scrollHandler);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal in-page sections TOC.
|
||||||
|
* */
|
||||||
|
var inPageToc;
|
||||||
|
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
try {
|
||||||
|
fixMoniker();
|
||||||
|
mergeCodeSnippets();
|
||||||
|
loadLangFilter();
|
||||||
|
showSelectedLanguages();
|
||||||
|
inPageToc = new InternalToc(); // generate in-page TOC
|
||||||
|
inPageTocElementInitSticky();
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
var msg = e.message;
|
||||||
|
if (e.stack) {
|
||||||
|
msg = msg + "/n" + e.stack;
|
||||||
|
}
|
||||||
|
(console.error || console.log).call(console, msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #endregion PAGE INIT ***********************
|
||||||
|
|
||||||
|
|
||||||
|
// #region INTERNAL TOC **********************
|
||||||
|
|
||||||
|
// position:sticky polyfill for IE 11
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize position:sticky for #internal-toc-container.stickthis element.
|
||||||
|
* */
|
||||||
|
function inPageTocElementInitSticky() {
|
||||||
|
inPageTocElement = document.querySelector('#internal-toc-container.stickthis');
|
||||||
|
inPageTocElementOffset = inPageTocElement.getBoundingClientRect();
|
||||||
|
}
|
||||||
|
|
||||||
|
var inPageTocElement;
|
||||||
|
var inPageTocElementOffset;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simulate position:sticky for #internal-toc-container.stickthis element.
|
||||||
|
* */
|
||||||
|
function inPageTocElementMakeStickyOnScroll() {
|
||||||
|
if (window.pageYOffset > inPageTocElementOffset.top) {
|
||||||
|
inPageTocElement.style.position = 'fixed';
|
||||||
|
inPageTocElement.style.top = 0;
|
||||||
|
} else {
|
||||||
|
inPageTocElement.style.position = 'relative';
|
||||||
|
inPageTocElement.style.top = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endregion INTERNAL TOC **********************
|
||||||
|
|
||||||
|
|
||||||
|
// #region EXPAND / COLLAPSE SECTION *********************
|
||||||
|
|
||||||
|
function toggleSection(sectionLinkElm) {
|
||||||
|
var sectionDiv = sectionLinkElm.parentNode.parentNode.parentNode;
|
||||||
|
if (hasElementClass(sectionDiv, "collapsed")) {
|
||||||
|
expandSection(sectionLinkElm);
|
||||||
|
} else {
|
||||||
|
collapseSection(sectionLinkElm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function expandSection(sectionLinkElm) {
|
||||||
|
var sectionDiv = sectionLinkElm.parentNode.parentNode.parentNode;
|
||||||
|
removeClassFromElement(sectionDiv, "collapsed");
|
||||||
|
sectionLinkElm.setAttribute("title", "Collapse");
|
||||||
|
}
|
||||||
|
|
||||||
|
function collapseSection(sectionLinkElm) {
|
||||||
|
var sectionDiv = sectionLinkElm.parentNode.parentNode.parentNode;
|
||||||
|
addClassToElement(sectionDiv, "collapsed");
|
||||||
|
sectionLinkElm.setAttribute("title", "Expand");
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endregion EXPAND / COLLAPSE SECTION ***********************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #region CODE SNIPPETS **********************
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Merges adjacent code snippets in different languages into
|
||||||
|
* single code collection with tabs.
|
||||||
|
*/
|
||||||
|
function mergeCodeSnippets() {
|
||||||
|
var allNodes = getElementAndTextNodes(document.body);
|
||||||
|
var parentCodeSnippet = null;
|
||||||
|
var i;
|
||||||
|
|
||||||
|
for (i = 0; i < allNodes.length; i++) {
|
||||||
|
var currentNode = allNodes[i];
|
||||||
|
|
||||||
|
var nextNode;
|
||||||
|
if (!parentCodeSnippet) {
|
||||||
|
// look for the first code snippet which will be a parent
|
||||||
|
if (hasElementClass(currentNode, "codeSnippetContainer")) {
|
||||||
|
parentCodeSnippet = currentNode;
|
||||||
|
// snippet found, move after it
|
||||||
|
nextNode = getNextNonChildElementOrTextNode(parentCodeSnippet);
|
||||||
|
while (allNodes[++i] !== nextNode && i < allNodes.length) { /*empty*/ }
|
||||||
|
i--;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// look for the next ADJACENT code snippet
|
||||||
|
if (hasElementClass(currentNode, "codeSnippetContainer")) {
|
||||||
|
// merge it with the parent
|
||||||
|
mergeTwoCodeSnippets(parentCodeSnippet, currentNode);
|
||||||
|
// move after adjacent snippet
|
||||||
|
nextNode = getNextNonChildElementOrTextNode(currentNode);
|
||||||
|
while (allNodes[++i] !== nextNode && i < allNodes.length) { /*empty*/ }
|
||||||
|
i--;
|
||||||
|
} else {
|
||||||
|
// or look for the non-whitespace text
|
||||||
|
if (currentNode.nodeType === TEXT_NODE || currentNode.nodeType === CDATA_SECTION_NODE) {
|
||||||
|
if (currentNode.nodeValue.trim() !== "") {
|
||||||
|
// found non empty text after parent snippet, don't merge and find next parent
|
||||||
|
parentCodeSnippet = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var ELEMENT_NODE = 1;
|
||||||
|
var TEXT_NODE = 3;
|
||||||
|
var CDATA_SECTION_NODE = 4;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns all elements and text nodes under the root.
|
||||||
|
* Recursion is not used due to performance reasons.
|
||||||
|
*
|
||||||
|
* @param {HTMLElement} root - The root node.
|
||||||
|
* @returns {Array<Node>} All elements and text nodes under the root.
|
||||||
|
*/
|
||||||
|
function getElementAndTextNodes(root) {
|
||||||
|
var result = [];
|
||||||
|
|
||||||
|
var node = root.childNodes[0];
|
||||||
|
while (node !== null) {
|
||||||
|
switch (node.nodeType) {
|
||||||
|
case ELEMENT_NODE:
|
||||||
|
case TEXT_NODE:
|
||||||
|
case CDATA_SECTION_NODE:
|
||||||
|
result.push(node);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (node.hasChildNodes()) {
|
||||||
|
node = node.firstChild;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
while (node.nextSibling === null && node !== root) {
|
||||||
|
node = node.parentNode;
|
||||||
|
}
|
||||||
|
node = node.nextSibling;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Merges two separate snippets together. The child snippet
|
||||||
|
* becomes a part of the parent snippet. Tabs and visibility
|
||||||
|
* are adjusted accordingly.
|
||||||
|
* @param {Node} parentSnippet The parent snippet to merge.
|
||||||
|
* @param {Node} childSnippet The child snippet to merge.
|
||||||
|
*/
|
||||||
|
function mergeTwoCodeSnippets(parentSnippet, childSnippet) {
|
||||||
|
var childCode = getDivWithClass(childSnippet, "codeSnippetCode");
|
||||||
|
var parentCodeCollection = getDivWithClass(parentSnippet, "codeSnippetCodeCollection");
|
||||||
|
if (childCode && parentCodeCollection) {
|
||||||
|
// remove existing lang code in parent, if any
|
||||||
|
var lang = getLangOfCodeSnippetCode(childCode);
|
||||||
|
if (lang) {
|
||||||
|
var existingCode = getCodeSnippetCodeByLang(parentSnippet, lang);
|
||||||
|
if (existingCode) {
|
||||||
|
existingCode.parentNode.removeChild(existingCode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// move child code to the parent
|
||||||
|
childCode.parentNode.removeChild(childCode);
|
||||||
|
parentCodeCollection.appendChild(childCode);
|
||||||
|
showHideTag(childSnippet, false);
|
||||||
|
|
||||||
|
// correct the tabs (bold or normal for N/A lang)
|
||||||
|
var csCode, tab, i;
|
||||||
|
var tabsDiv = getDivWithClass(parentSnippet, "codeSnippetTabs");
|
||||||
|
var langs = ["codeVB", "codeCsharp", "codeCpp", "codeFsharp", "codeJScript"];
|
||||||
|
|
||||||
|
for (i = 0; i < langs.length; i++) {
|
||||||
|
lang = langs[i];
|
||||||
|
csCode = getCodeSnippetCodeByLang(parentCodeCollection, lang);
|
||||||
|
tab = getDivWithClass(tabsDiv, lang);
|
||||||
|
if (csCode) {
|
||||||
|
// lang exists
|
||||||
|
removeClassFromElement(tab, "csNaTab");
|
||||||
|
} else {
|
||||||
|
// lang doesn't exist
|
||||||
|
addClassToElement(tab, "csNaTab");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a language of DIV with codeSnippetCode class.
|
||||||
|
* @param {HTMLElement} elm The element with code to inspect.
|
||||||
|
* @return {string} The language code: "codeVB", "codeCsharp", "codeCpp", "codeFsharp", "codeJScript" or null.
|
||||||
|
*/
|
||||||
|
function getLangOfCodeSnippetCode(elm) {
|
||||||
|
if (hasElementClass(elm, "codeVB")) {
|
||||||
|
return "codeVB";
|
||||||
|
} else if (hasElementClass(elm, "codeCsharp")) {
|
||||||
|
return "codeCsharp";
|
||||||
|
} else if (hasElementClass(elm, "codeCpp")) {
|
||||||
|
return "codeCpp";
|
||||||
|
} else if (hasElementClass(elm, "codeFsharp")) {
|
||||||
|
return "codeFsharp";
|
||||||
|
} else if (hasElementClass(elm, "codeJScript")) {
|
||||||
|
return "codeJScript";
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a DIV with codeSnippetCode class with specified language class.
|
||||||
|
* @param {HTMLElement} containerSnippet The code container element.
|
||||||
|
* @param {string} lang The required language code.
|
||||||
|
* @returns {HTMLElement} The found code element. Null if not found.
|
||||||
|
*/
|
||||||
|
function getCodeSnippetCodeByLang(containerSnippet, lang) {
|
||||||
|
var divTags = containerSnippet.getElementsByTagName("div");
|
||||||
|
var i;
|
||||||
|
for (i = 0; i < divTags.length; i++) {
|
||||||
|
if (hasElementClasses(divTags[i], new Array("codeSnippetCode", lang))) {
|
||||||
|
return divTags[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the next node which is not a child of specified element and
|
||||||
|
* is whether an element or text node.
|
||||||
|
* @param {Node} nod The base HTML node for which the search will be done.
|
||||||
|
* @returns {Node} The node found or null.
|
||||||
|
* @remark Unlike nextSibling property, this method returns also text nodes.
|
||||||
|
* Moreover, if there is no next sibling, this method goes higher in the hierarchy
|
||||||
|
* and finds the next node.
|
||||||
|
*/
|
||||||
|
function getNextNonChildElementOrTextNode(nod) {
|
||||||
|
// try next sibling first
|
||||||
|
var res = nod;
|
||||||
|
while ((res = res.nextSibling) !== null) {
|
||||||
|
switch (res.nodeType) {
|
||||||
|
case ELEMENT_NODE:
|
||||||
|
case TEXT_NODE:
|
||||||
|
case CDATA_SECTION_NODE:
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// no sibling element or text found, try higher
|
||||||
|
if (nod.parentNode) {
|
||||||
|
return getNextNonChildElementOrTextNode(nod.parentNode);
|
||||||
|
} else {
|
||||||
|
// no node found
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endregion CODE SNIPPETS **********************
|
||||||
|
|
||||||
|
|
||||||
|
// #region COMMON UTILS **********************
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the first DIV element which has the specified class.
|
||||||
|
* @param {HTMLElement} parentElm The element where to start searching.
|
||||||
|
* @param {string} className The class name to be found.
|
||||||
|
* @returns {HTMLElement} The found DIV element or null if not found.
|
||||||
|
*/
|
||||||
|
function getDivWithClass(parentElm, className) {
|
||||||
|
var divTags = parentElm.getElementsByTagName("div");
|
||||||
|
var i;
|
||||||
|
for (i = 0; i < divTags.length; i++) {
|
||||||
|
if (hasElementClass(divTags[i], className)) {
|
||||||
|
return divTags[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines whether an element contains specified CSS class.
|
||||||
|
* @param {HTMLElement} elm The element to test.
|
||||||
|
* @param {string} className The class name to be tested.
|
||||||
|
* @returns {boolean} A value indicating whether the element contains the class.
|
||||||
|
*/
|
||||||
|
function hasElementClass(elm, className) {
|
||||||
|
if (elm.className) {
|
||||||
|
var classes = elm.className.split(" ");
|
||||||
|
className = className.toLowerCase();
|
||||||
|
var i;
|
||||||
|
for (i = 0; i < classes.length; i++) {
|
||||||
|
if (classes[i].toLowerCase() === className) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines whether an element contains all specified CSS classes.
|
||||||
|
* @param {HTMLElement} elm The element to test.
|
||||||
|
* @param {Array<string>} classNames An array of class names.
|
||||||
|
* @returns {boolean} A value indicating whether the element contains the classes.
|
||||||
|
*/
|
||||||
|
function hasElementClasses(elm, classNames) {
|
||||||
|
if (elm.className) {
|
||||||
|
var classes = elm.className.split(" ");
|
||||||
|
var i, j, found;
|
||||||
|
found = 0;
|
||||||
|
for (j = 0; j < classNames.length; j++) {
|
||||||
|
var className = classNames[j].toLowerCase();
|
||||||
|
for (i = 0; i < classes.length; i++) {
|
||||||
|
var elmClass = classes[i].toLowerCase();
|
||||||
|
if (elmClass === className) {
|
||||||
|
found++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (found === classNames.length) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes specified CSS class from an element, if any.
|
||||||
|
* @param {HTMLElement} elm The element to process.
|
||||||
|
* @param {string} className The class name to be removed.
|
||||||
|
*/
|
||||||
|
function removeClassFromElement(elm, className) {
|
||||||
|
if (elm === null) return;
|
||||||
|
if (elm.className) {
|
||||||
|
var classes = elm.className.split(" ");
|
||||||
|
className = className.toLowerCase();
|
||||||
|
var i;
|
||||||
|
for (i = classes.length - 1; i >= 0; i--) {
|
||||||
|
if (classes[i].toLowerCase() === className) {
|
||||||
|
classes.splice(i, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elm.className = classes.join(" ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds specified CSS class to an element.
|
||||||
|
* @param {HTMLElement} elm The element to process.
|
||||||
|
* @param {string} className The class name to be added.
|
||||||
|
*/
|
||||||
|
function addClassToElement(elm, className) {
|
||||||
|
if (elm === null) return;
|
||||||
|
if (elm.className) {
|
||||||
|
var classes = elm.className.split(" ");
|
||||||
|
var classNameLow = className.toLowerCase();
|
||||||
|
var i;
|
||||||
|
for (i = classes.length - 1; i >= 0; i--) {
|
||||||
|
if (classes[i].toLowerCase() === classNameLow) {
|
||||||
|
// class already exists
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
classes[classes.length] = className;
|
||||||
|
elm.className = classes.join(" ");
|
||||||
|
} else {
|
||||||
|
elm.className = className;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Super fast trim. Faster than pure regex solution.
|
||||||
|
* @returns {string} The trimmed version of the original string.
|
||||||
|
*/
|
||||||
|
String.prototype.trim = function () {
|
||||||
|
var str = this.replace(/^\s\s*/, ''),
|
||||||
|
ws = /\s/,
|
||||||
|
i = str.length;
|
||||||
|
while (ws.test(str.charAt(--i)));
|
||||||
|
return str.slice(0, i + 1);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the specified query parameter value.
|
||||||
|
* @param {string} name Parameter name.
|
||||||
|
* @param {string} url Optional.
|
||||||
|
* @returns {string} The parameter value, an empty string if parameter is present without a value, null id parameter not present.
|
||||||
|
*/
|
||||||
|
function getQueryParameterByName(name, url) {
|
||||||
|
//const urlParams = new URLSearchParams(window.location.search); // not supported by IE, not a problem?
|
||||||
|
//const myParam = urlParams.get('myParam');
|
||||||
|
|
||||||
|
if (!url) url = window.location.href;
|
||||||
|
name = name.replace(/[\[\]]/g, '\\$&');
|
||||||
|
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
|
||||||
|
results = regex.exec(url);
|
||||||
|
if (!results) return null;
|
||||||
|
if (!results[2]) return '';
|
||||||
|
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the value of a CSS Custom Property (starting with --).
|
||||||
|
* Pass in an element and its CSS Custom Property that you want the value of.
|
||||||
|
* Optionally, you can determine what datatype you get back.
|
||||||
|
*
|
||||||
|
* @param {String} propertyName The name of the custom CSS property, including the leading --.
|
||||||
|
* @param {String} [castAs='string'] The datatype name of the value to be retrieved. Available values are:
|
||||||
|
* 'number', 'int', 'float', 'boolean', 'bool'. Any other or omitted value returns string.
|
||||||
|
* @param {HTMLELement} [element=document.documentElement] The element with the CSS property.
|
||||||
|
* Can be omitted if the property is global, defined inside the ':root { --MyProperty }' rule.
|
||||||
|
* @returns {*} The value of the specified CSS Custom Property.
|
||||||
|
*/
|
||||||
|
const getCssCustomProperty = function (propertyName, castAs, element) {
|
||||||
|
castAs = castAs || 'string'; // default value if parameter not passed
|
||||||
|
element = element || document.documentElement; // default value if parameter not passed
|
||||||
|
|
||||||
|
// CSS variables are not supported in IE 11 used in CHM.
|
||||||
|
//let response = getComputedStyle(element).getPropertyValue(propertyName);
|
||||||
|
// Instead, use the following representation:
|
||||||
|
//.propertyName_without--prefix:after{
|
||||||
|
// content: value;
|
||||||
|
//}
|
||||||
|
propertyName = propertyName.substr(2); // remove -- prefix
|
||||||
|
let response = getStyleRuleValue('.' + propertyName + '::after', 'content');
|
||||||
|
if (response === null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tidy up the string if there's something to work with
|
||||||
|
if (response.length) {
|
||||||
|
response = response.replace(/\'|"/g, '').trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert the response into a whatever type we wanted
|
||||||
|
switch (castAs) {
|
||||||
|
case 'number':
|
||||||
|
case 'int':
|
||||||
|
return parseInt(response, 10);
|
||||||
|
case 'float':
|
||||||
|
return parseFloat(response, 10);
|
||||||
|
case 'boolean':
|
||||||
|
case 'bool':
|
||||||
|
return response === 'true' || response === '1';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return the string response by default
|
||||||
|
return response;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function getStyleRuleValue(selector, style) {
|
||||||
|
let value = null;
|
||||||
|
selector = selector.toLowerCase();
|
||||||
|
for (let i = 0; i < document.styleSheets.length; i++) {
|
||||||
|
const mysheet = document.styleSheets[i];
|
||||||
|
const myrules = mysheet.cssRules ? mysheet.cssRules : mysheet.rules;
|
||||||
|
for (let j = 0; j < myrules.length; j++) {
|
||||||
|
if (myrules[j].selectorText &&
|
||||||
|
myrules[j].selectorText.toLowerCase() === selector) {
|
||||||
|
value = myrules[j].style[style];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endregion COMMON UTILS **********************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #region LANGUAGE FILTER **********************
|
||||||
|
|
||||||
|
// Specifies which language tab is shown as default for the first time.
|
||||||
|
// Possible values: "codeVB", "codeCsharp", "codeCpp", "codeFsharp", "codeJScript"
|
||||||
|
var DEFAULT_LANGUAGE_TO_SHOW = "codeCsharp";
|
||||||
|
var languageToShow = DEFAULT_LANGUAGE_TO_SHOW;
|
||||||
|
|
||||||
|
function loadLangFilter() {
|
||||||
|
languageToShow = loadSetting("languageToShow", DEFAULT_LANGUAGE_TO_SHOW);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function saveLangFilter() {
|
||||||
|
saveSetting("languageToShow", languageToShow);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hides/shows the language sections according to language filter
|
||||||
|
* @param {string} langCode "VB", "Csharp", "Cpp", "Fsharp", "JScript"
|
||||||
|
*/
|
||||||
|
function CodeSnippet_SetLanguage(langCode) {
|
||||||
|
languageToShow = "code" + langCode;
|
||||||
|
showSelectedLanguages();
|
||||||
|
saveLangFilter();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets all code snippets. A snippet is a DIV with class="codeSnippetContainer".
|
||||||
|
* @returns {Array<HTMLElement>} The found code snippets.
|
||||||
|
*/
|
||||||
|
function getAllCodeSnippets() {
|
||||||
|
var divTags = document.getElementsByTagName("div");
|
||||||
|
var snippets = new Array();
|
||||||
|
var i, j;
|
||||||
|
j = 0;
|
||||||
|
for (i = 0; i < divTags.length; i++) {
|
||||||
|
if (hasElementClass(divTags[i], "codeSnippetContainer")) {
|
||||||
|
snippets[j++] = divTags[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return snippets;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hides/shows the language sections according to the language filter.
|
||||||
|
*/
|
||||||
|
function showSelectedLanguages() {
|
||||||
|
try {
|
||||||
|
var snippets = getAllCodeSnippets();
|
||||||
|
var i, j, divs, codeCollection, snippet;
|
||||||
|
|
||||||
|
for (i = 0; i < snippets.length; i++) {
|
||||||
|
snippet = snippets[i];
|
||||||
|
if (snippet.style.display !== "none") {
|
||||||
|
var langIsNA = false;
|
||||||
|
|
||||||
|
// set the tabs (active/inactive)
|
||||||
|
var tabsDiv = getDivWithClass(snippet, "codeSnippetTabs");
|
||||||
|
// reset corners
|
||||||
|
var leftCorner, rightCorner;
|
||||||
|
leftCorner = getDivWithClass(tabsDiv, "codeSnippetTabLeftCorner");
|
||||||
|
if (!leftCorner) {
|
||||||
|
leftCorner = getDivWithClass(tabsDiv, "codeSnippetTabLeftCornerActive");
|
||||||
|
}
|
||||||
|
rightCorner = getDivWithClass(tabsDiv, "codeSnippetTabRightCorner");
|
||||||
|
if (!rightCorner) {
|
||||||
|
rightCorner = getDivWithClass(tabsDiv, "codeSnippetTabRightCornerActive");
|
||||||
|
}
|
||||||
|
removeClassFromElement(leftCorner, "codeSnippetTabLeftCornerActive");
|
||||||
|
addClassToElement(leftCorner, "codeSnippetTabLeftCorner");
|
||||||
|
removeClassFromElement(rightCorner, "codeSnippetTabRightCornerActive");
|
||||||
|
addClassToElement(rightCorner, "codeSnippetTabRightCorner");
|
||||||
|
|
||||||
|
// get the tabs
|
||||||
|
divs = tabsDiv.getElementsByTagName("div");
|
||||||
|
var tab;
|
||||||
|
var tabDivs = new Array();
|
||||||
|
for (j = 0; j < divs.length; j++) {
|
||||||
|
if (hasElementClass(divs[j], "codeSnippetTab")) {
|
||||||
|
// it's a tab
|
||||||
|
tab = divs[j];
|
||||||
|
tabDivs[tabDivs.length] = tab;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// activate/deactivate the tabs
|
||||||
|
var tabLink;
|
||||||
|
var visibleTabs = new Array();
|
||||||
|
for (j = 0; j < tabDivs.length; j++) {
|
||||||
|
tab = tabDivs[j];
|
||||||
|
|
||||||
|
if (hasElementClass(tab, languageToShow)) {
|
||||||
|
addClassToElement(tab, "csActiveTab");
|
||||||
|
tabLink = tab.getElementsByTagName("a")[0];
|
||||||
|
tabLink.removeAttribute("href");
|
||||||
|
langIsNA = hasElementClass(tab, "csNaTab");
|
||||||
|
} else {
|
||||||
|
removeClassFromElement(tab, "csActiveTab");
|
||||||
|
var shortLang = getLangOfCodeSnippetCode(tab).substring(4);
|
||||||
|
tabLink = tab.getElementsByTagName("a")[0];
|
||||||
|
tabLink.setAttribute("href", "javascript: CodeSnippet_SetLanguage('" + shortLang + "');");
|
||||||
|
}
|
||||||
|
|
||||||
|
// get visible tabs; invisible tabs are: with not supported lang AND not active
|
||||||
|
if (!(hasElementClass(tab, "csNaTab") && !hasElementClass(tab, "csActiveTab"))) {
|
||||||
|
// tab is visible
|
||||||
|
visibleTabs[visibleTabs.length] = tab;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// fix some styles (first, last) of visible tabs and corners
|
||||||
|
for (j = 0; j < visibleTabs.length; j++) {
|
||||||
|
tab = visibleTabs[j];
|
||||||
|
|
||||||
|
removeClassFromElement(tab, "csFirstTab");
|
||||||
|
removeClassFromElement(tab, "csLastTab");
|
||||||
|
if (j === 0) {
|
||||||
|
addClassToElement(tab, "csFirstTab");
|
||||||
|
if (hasElementClass(tab, "csActiveTab")) {
|
||||||
|
removeClassFromElement(leftCorner, "codeSnippetTabLeftCorner");
|
||||||
|
addClassToElement(leftCorner, "codeSnippetTabLeftCornerActive");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (j === visibleTabs.length - 1) {
|
||||||
|
addClassToElement(tab, "csLastTab");
|
||||||
|
if (hasElementClass(tab, "csActiveTab")) {
|
||||||
|
removeClassFromElement(rightCorner, "codeSnippetTabRightCorner");
|
||||||
|
addClassToElement(rightCorner, "codeSnippetTabRightCornerActive");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// show/hide code block
|
||||||
|
codeCollection = getDivWithClass(snippet, "codeSnippetCodeCollection");
|
||||||
|
divs = codeCollection.getElementsByTagName("div");
|
||||||
|
for (j = 0; j < divs.length; j++) {
|
||||||
|
if (hasElementClass(divs[j], "codeSnippetCode")) {
|
||||||
|
// it's a code block
|
||||||
|
if (langIsNA) {
|
||||||
|
showHideTag(divs[j], hasElementClass(divs[j], "codeNA"));
|
||||||
|
} else {
|
||||||
|
showHideTag(divs[j], hasElementClass(divs[j], languageToShow));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (ex) {
|
||||||
|
// empty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function showHideTag(tag, visible) {
|
||||||
|
try {
|
||||||
|
if (visible) {
|
||||||
|
tag.style.display = "";
|
||||||
|
} else {
|
||||||
|
tag.style.display = "none";
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
/*empty*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endregion LANGUAGE FILTER **********************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #region COPY CODE ***************************
|
||||||
|
|
||||||
|
function CopyCode(item) {
|
||||||
|
try {
|
||||||
|
// get the visible code block div
|
||||||
|
var codeCollection = item.parentNode.parentNode;
|
||||||
|
var divs = codeCollection.getElementsByTagName("div");
|
||||||
|
var i, shownCode;
|
||||||
|
for (i = 0; i < divs.length; i++) {
|
||||||
|
if (hasElementClass(divs[i], "codeSnippetCode")) {
|
||||||
|
// it's a code block
|
||||||
|
if (divs[i].style.display !== "none") {
|
||||||
|
shownCode = divs[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (shownCode) {
|
||||||
|
// get code and remove <br>
|
||||||
|
var code;
|
||||||
|
code = shownCode.innerHTML;
|
||||||
|
code = code.replace(/<br>/gi, "\n");
|
||||||
|
code = code.replace(/<\/td>/gi, "</td>\n"); // syntax highlighter removes \n chars and puts each line in separate <td>
|
||||||
|
code = code.trim(); // remove leading spaces which are unwanted in FF
|
||||||
|
// get plain text
|
||||||
|
var tmpDiv = document.createElement('div');
|
||||||
|
tmpDiv.innerHTML = code;
|
||||||
|
|
||||||
|
if (typeof tmpDiv.textContent !== "undefined") {
|
||||||
|
// standards compliant
|
||||||
|
code = tmpDiv.textContent;
|
||||||
|
}
|
||||||
|
else if (typeof tmpDiv.innerText !== "undefined") {
|
||||||
|
// IE only
|
||||||
|
code = tmpDiv.innerText;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// works in IE only
|
||||||
|
window.clipboardData.setData("Text", code);
|
||||||
|
} catch (ex) {
|
||||||
|
popCodeWindow(code);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
/*empty*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function popCodeWindow(code) {
|
||||||
|
try {
|
||||||
|
var codeWindow = window.open("",
|
||||||
|
"Copy the selected code",
|
||||||
|
"location=0,status=0,toolbar=0,menubar =0,directories=0,resizable=1,scrollbars=1,height=400, width=400");
|
||||||
|
codeWindow.document.writeln("<html>");
|
||||||
|
codeWindow.document.writeln("<head>");
|
||||||
|
codeWindow.document.writeln("<title>Copy the selected code</title>");
|
||||||
|
codeWindow.document.writeln("</head>");
|
||||||
|
codeWindow.document.writeln("<body bgcolor=\"#FFFFFF\">");
|
||||||
|
codeWindow.document.writeln('<pre id="code_text">');
|
||||||
|
codeWindow.document.writeln(escapeHTML(code));
|
||||||
|
codeWindow.document.writeln("</pre>");
|
||||||
|
codeWindow.document.writeln("<scr" + "ipt>");
|
||||||
|
// the selectNode function below, converted by http://www.howtocreate.co.uk/tutorials/jsexamples/syntax/prepareInline.html
|
||||||
|
var ftn = "function selectNode (node) {\n\tvar selection, range, doc, win;\n\tif ((doc = node.ownerDocument) && \n\t\t(win = doc.defaultView) && \n\t\ttypeof win.getSelection != \'undefined\' && \n\t\ttypeof doc.createRange != \'undefined\' && \n\t\t(selection = window.getSelection()) && \n\t\ttypeof selection.removeAllRanges != \'undefined\') {\n\t\t\t\n\t\trange = doc.createRange();\n\t\trange.selectNode(node);\n selection.removeAllRanges();\n selection.addRange(range);\n\t} else if (document.body && \n\t\t\ttypeof document.body.createTextRange != \'undefined\' && \n\t\t\t(range = document.body.createTextRange())) {\n \n\t\t \trange.moveToElementText(node);\n \trange.select();\n }\n} ";
|
||||||
|
codeWindow.document.writeln(ftn);
|
||||||
|
codeWindow.document.writeln("selectNode(document.getElementById('code_text'));</scr" + "ipt>");
|
||||||
|
codeWindow.document.writeln("</body>");
|
||||||
|
codeWindow.document.writeln("</html>");
|
||||||
|
codeWindow.document.close();
|
||||||
|
} catch (ex) { /*empty*/ }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function escapeHTML(str) {
|
||||||
|
return str.replace(/&/g, "&").
|
||||||
|
replace(/>/g, ">").
|
||||||
|
replace(/</g, "<").
|
||||||
|
replace(/"/g, """);
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectNode(node) {
|
||||||
|
var selection, range, doc, win;
|
||||||
|
if ((doc = node.ownerDocument) &&
|
||||||
|
(win = doc.defaultView) &&
|
||||||
|
typeof win.getSelection !== 'undefined' &&
|
||||||
|
typeof doc.createRange !== 'undefined' &&
|
||||||
|
(selection = window.getSelection()) &&
|
||||||
|
typeof selection.removeAllRanges !== 'undefined') {
|
||||||
|
|
||||||
|
range = doc.createRange();
|
||||||
|
range.selectNode(node);
|
||||||
|
selection.removeAllRanges();
|
||||||
|
selection.addRange(range);
|
||||||
|
} else if (document.body &&
|
||||||
|
typeof document.body.createTextRange !== 'undefined' &&
|
||||||
|
(range = document.body.createTextRange())) {
|
||||||
|
|
||||||
|
range.moveToElementText(node);
|
||||||
|
range.select();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endregion COPY CODE ***************************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #region PERSISTENCE *************************
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the cookie value. When an optional argument is omitted, a null is used.
|
||||||
|
* @param {string} name - The name of the cookie.
|
||||||
|
* @param {*} value - The value of the cookie.
|
||||||
|
* @param {Date} [expires] - The expiration date of the cookie (defaults to end of current session).
|
||||||
|
* @param {string} [path] - The path for which the cookie is valid (defaults to path of calling document).
|
||||||
|
* @param {string} [domain] - The domain for which the cookie is valid (defaults to domain of calling document)
|
||||||
|
* @param {boolean} [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
|
||||||
|
*/
|
||||||
|
function setCookie(name, value, expires, path, domain, secure) {
|
||||||
|
var curCookie = name + "=" + escape(value) +
|
||||||
|
(expires ? "; expires=" + expires.toGMTString() : "") +
|
||||||
|
(path ? "; path=" + path : "") +
|
||||||
|
(domain ? "; domain=" + domain : "") +
|
||||||
|
(secure ? "; secure" : "");
|
||||||
|
document.cookie = curCookie;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the cookie value.
|
||||||
|
* @param {string} name The name of the desired cookie.
|
||||||
|
* @returns {string} A string containing the value of specified cookie or null if cookie does not exist.
|
||||||
|
*/
|
||||||
|
function getCookie(name) {
|
||||||
|
var dc = document.cookie;
|
||||||
|
var prefix = name + "=";
|
||||||
|
var begin = dc.indexOf("; " + prefix);
|
||||||
|
if (begin === -1) {
|
||||||
|
begin = dc.indexOf(prefix);
|
||||||
|
if (begin !== 0) return null;
|
||||||
|
} else
|
||||||
|
begin += 2;
|
||||||
|
var end = document.cookie.indexOf(";", begin);
|
||||||
|
if (end === -1)
|
||||||
|
end = dc.length;
|
||||||
|
return unescape(dc.substring(begin + prefix.length, end));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes a cookie.
|
||||||
|
* @param {string} name - The name of the cookie.
|
||||||
|
* @param {string} [path] - path of the cookie (must be same as path used to create cookie)
|
||||||
|
* @param {string} [domain] - domain of the cookie (must be same as domain used to create cookie)
|
||||||
|
*/
|
||||||
|
function deleteCookie(name, path, domain) {
|
||||||
|
if (getCookie(name)) {
|
||||||
|
document.cookie = name + "=" +
|
||||||
|
(path ? "; path=" + path : "") +
|
||||||
|
(domain ? "; domain=" + domain : "") +
|
||||||
|
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fixes the moniker of the current URL. It's needed for implementation of userData in a CHM.
|
||||||
|
* @returns {boolean} True if the fix (URL replace) was done.
|
||||||
|
*/
|
||||||
|
function fixMoniker() {
|
||||||
|
var curURL = document.location + ".";
|
||||||
|
var pos = curURL.indexOf("mk:@MSITStore");
|
||||||
|
if (pos === 0) {
|
||||||
|
curURL = "ms-its:" + curURL.substring(14, curURL.length - 1);
|
||||||
|
document.location.replace(curURL);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else { return true; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detects whether HTML5 localStotage functionality is supported.
|
||||||
|
* @returns {boolean} A value indicating whether HTML5 localStotage functionality is supported.
|
||||||
|
*/
|
||||||
|
function isLocalStorageSupported() {
|
||||||
|
var str = 'vsdocmanDetectStorage';
|
||||||
|
try {
|
||||||
|
localStorage.setItem(str, str);
|
||||||
|
localStorage.removeItem(str);
|
||||||
|
return true;
|
||||||
|
} catch (e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function saveSetting(name, value) {
|
||||||
|
// create an instance of the Date object
|
||||||
|
var now = new Date();
|
||||||
|
// cookie expires in one year (actually, 365 days)
|
||||||
|
// 1000 milliseconds in a second
|
||||||
|
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
|
||||||
|
// convert the value to correct String
|
||||||
|
if (value.constructor === Boolean) {
|
||||||
|
if (!value) {
|
||||||
|
value = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// IE returns wrong document.cookie if the value is empty string
|
||||||
|
if (value === "") {
|
||||||
|
value = "string:empty";
|
||||||
|
}
|
||||||
|
|
||||||
|
// try to use localStorage (instead of old-fashioned cookies or userData)
|
||||||
|
if (isLocalStorageSupported()) {
|
||||||
|
localStorage.setItem(name, value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// we cannot use cookies in CHM, so try to use behaviors if possible
|
||||||
|
var headerDiv; // we can use any particular DIV or other element
|
||||||
|
headerDiv = document.getElementById("header");
|
||||||
|
if (headerDiv.addBehavior) {
|
||||||
|
headerDiv.style.behavior = "url('#default#userData')";
|
||||||
|
headerDiv.expires = now.toUTCString();
|
||||||
|
headerDiv.setAttribute(name, value);
|
||||||
|
// Save the persistence data as "helpSettings".
|
||||||
|
headerDiv.save("helpSettings");
|
||||||
|
} else {
|
||||||
|
// set the new cookie
|
||||||
|
setCookie(name, value, now/*, "/"*/);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function loadSetting(name, defaultValue) {
|
||||||
|
var res;
|
||||||
|
|
||||||
|
// try to use localStorage (instead of old-fashioned cookies or userData)
|
||||||
|
if (isLocalStorageSupported()) {
|
||||||
|
res = localStorage.getItem(name);
|
||||||
|
} else {
|
||||||
|
// we cannot use cookies in CHM, so try to use behaviors if possible
|
||||||
|
var headerDiv; // we can use any particular DIV or other element
|
||||||
|
headerDiv = document.getElementById("header");
|
||||||
|
if (headerDiv.addBehavior) {
|
||||||
|
headerDiv.style.behavior = "url('#default#userData')";
|
||||||
|
headerDiv.load("helpSettings");
|
||||||
|
res = headerDiv.getAttribute(name);
|
||||||
|
} else {
|
||||||
|
// get the cookie
|
||||||
|
res = getCookie(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (res === "string:empty") {
|
||||||
|
res = "";
|
||||||
|
}
|
||||||
|
if (res === null) {
|
||||||
|
res = defaultValue;
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #endregion PERSISTENCE *************************
|
||||||
|
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 204 B |
|
After Width: | Height: | Size: 197 B |
|
After Width: | Height: | Size: 280 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 265 B |
|
After Width: | Height: | Size: 281 B |
|
After Width: | Height: | Size: 292 B |
|
After Width: | Height: | Size: 293 B |
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 231 B |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 379 B |
|
After Width: | Height: | Size: 407 B |
|
After Width: | Height: | Size: 216 B |
|
After Width: | Height: | Size: 242 B |
|
After Width: | Height: | Size: 245 B |
|
After Width: | Height: | Size: 250 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 364 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 422 B |
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 291 B |
|
After Width: | Height: | Size: 300 B |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 361 B |
|
After Width: | Height: | Size: 298 B |
|
After Width: | Height: | Size: 225 B |
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 303 B |
|
After Width: | Height: | Size: 210 B |
|
After Width: | Height: | Size: 542 B |
|
After Width: | Height: | Size: 216 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 575 B |