added site files
This commit is contained in:
parent
a6f70a6c78
commit
329148c253
253 changed files with 30486 additions and 0 deletions
46
EnlighterJS/Source/Language/Diff.js
Normal file
46
EnlighterJS/Source/Language/Diff.js
Normal file
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
---
|
||||
description: DIFF Highlighting
|
||||
|
||||
license: MIT-style
|
||||
|
||||
authors:
|
||||
- Andi Dittrich
|
||||
|
||||
requires:
|
||||
- Core/1.4.5
|
||||
|
||||
provides: [EnlighterJS.Language.diff]
|
||||
...
|
||||
*/
|
||||
EJS.Language.diff = new Class({
|
||||
Extends : EJS.Language.generic,
|
||||
|
||||
setupLanguage: function(){
|
||||
this.keywords = {
|
||||
};
|
||||
|
||||
this.patterns = {
|
||||
|
||||
'comments' : {
|
||||
pattern : /^((---|\+\+\+) .*)/gm,
|
||||
alias : 'co1'
|
||||
},
|
||||
|
||||
'stats' : {
|
||||
pattern : /^(@@.*@@\s*)/gm,
|
||||
alias : 'nu0'
|
||||
},
|
||||
|
||||
'add' : {
|
||||
pattern : /^(\+.*)/gm,
|
||||
alias : 're0'
|
||||
},
|
||||
|
||||
'del' : {
|
||||
pattern : /^(-.*)/gm,
|
||||
alias : 'st0'
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue