added site files
This commit is contained in:
parent
a6f70a6c78
commit
329148c253
253 changed files with 30486 additions and 0 deletions
41
EnlighterJS/Source/Language/RAW.js
Normal file
41
EnlighterJS/Source/Language/RAW.js
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
---
|
||||
description: RAW Code
|
||||
|
||||
license: MIT-style
|
||||
|
||||
authors:
|
||||
- Andi Dittrich
|
||||
|
||||
requires:
|
||||
- Core/1.4.5
|
||||
|
||||
provides: [EnlighterJS.Language.raw]
|
||||
...
|
||||
*/
|
||||
EJS.Language.raw = new Class({
|
||||
|
||||
Extends: EJS.Language.generic,
|
||||
|
||||
initialize: function(code) {
|
||||
this.code = code;
|
||||
},
|
||||
|
||||
getTokens: function(){
|
||||
// create token object
|
||||
var token = (function(text, alias, index){
|
||||
return {
|
||||
text: text,
|
||||
alias: alias,
|
||||
index: index,
|
||||
length: text.length,
|
||||
end: text.length + index
|
||||
}
|
||||
});
|
||||
|
||||
// raw means "no-highlight" - return a single, unknown token with the given sourcecode
|
||||
return [
|
||||
token(this.code, '', 0)
|
||||
];
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue