-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item8175: Support pure ascii-output without highlighting; return an e…
…rror if the language is not supported git-svn-id: http://svn.foswiki.org/trunk/DpSyntaxHighlighterPlugin@4053 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
AndrewJones
authored and
AndrewJones
committed
Jun 7, 2009
1 parent
3688673
commit e492f55
Showing
4 changed files
with
67 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
pub/System/DpSyntaxHighlighterPlugin/dp.SyntaxHighlighter/Scripts/shBrushPlain.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Code Syntax Highlighter. | ||
* Version 1.5.2 | ||
* Copyright (C) 2004-2008 Alex Gorbatchev | ||
* http://www.dreamprojections.com/syntaxhighlighter/ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3 of the License. | ||
* | ||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/* Plain brush contributed by Andrew Jones - http://andrew-jones.com */ | ||
dp.sh.Brushes.Plain = function() | ||
{ | ||
var funcs = ''; | ||
var keywords = ''; | ||
|
||
this.regexList = []; | ||
|
||
this.CssClass = 'dp-plain'; | ||
this.Style = ''; | ||
} | ||
|
||
dp.sh.Brushes.Plain.prototype = new dp.sh.Highlighter(); | ||
dp.sh.Brushes.Plain.Aliases = ['plain', 'ascii']; |