~crc-x/+junk/sic-gmail

« back to all changes in this revision

Viewing changes to phpmailer/test_script/scripts/shBrushDiff.js

  • Committer: crc
  • Date: 2013-01-01 15:46:28 UTC
  • Revision ID: crc@questor-20130101154628-w397tdjf38r20xxd
initial checkin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * SyntaxHighlighter
 
3
 * http://alexgorbatchev.com/
 
4
 *
 
5
 * SyntaxHighlighter is donationware. If you are using it, please donate.
 
6
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
 
7
 *
 
8
 * @version
 
9
 * 2.0.296 (March 01 2009)
 
10
 * 
 
11
 * @copyright
 
12
 * Copyright (C) 2004-2009 Alex Gorbatchev.
 
13
 *
 
14
 * @license
 
15
 * This file is part of SyntaxHighlighter.
 
16
 * 
 
17
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
 
18
 * it under the terms of the GNU General Public License as published by
 
19
 * the Free Software Foundation, either version 3 of the License, or
 
20
 * (at your option) any later version.
 
21
 * 
 
22
 * SyntaxHighlighter is distributed in the hope that it will be useful,
 
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
25
 * GNU General Public License for more details.
 
26
 * 
 
27
 * You should have received a copy of the GNU General Public License
 
28
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/licenses/>.
 
29
 */
 
30
SyntaxHighlighter.brushes.Diff = function()
 
31
{
 
32
        this.regexList = [
 
33
                { regex: /^\+\+\+.*$/gm,                css: 'color2' },
 
34
                { regex: /^\-\-\-.*$/gm,                css: 'color2' },
 
35
                { regex: /^\s.*$/gm,                    css: 'color1' },
 
36
                { regex: /^@@.*@@$/gm,                  css: 'variable' },
 
37
                { regex: /^\+[^\+]{1}.*$/gm,    css: 'string' },
 
38
                { regex: /^\-[^\-]{1}.*$/gm,    css: 'comments' }
 
39
                ];
 
40
};
 
41
 
 
42
SyntaxHighlighter.brushes.Diff.prototype        = new SyntaxHighlighter.Highlighter();
 
43
SyntaxHighlighter.brushes.Diff.aliases          = ['diff', 'patch'];