code_highlighter(edit component) 업데이트

- dp.SyntaxHighlighter 1.4에서 1.5.1로 업데이트 (통째로 덮어 씌움..)
- Abap 언어 추가.
- 접기/줄 번호 감추기/도구바 감추기 설정 추가.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3104 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2007-11-28 16:55:38 +00:00
parent 12f685e116
commit f490cad881
21 changed files with 1090 additions and 578 deletions

View file

@ -1,26 +1,10 @@
dp.sh.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';
/*
* JsMin
* Javascript Compressor
* http://www.crockford.com/
* http://www.smallsharptools.com/
*/
this.regexList = [
{ regex: dp.sh.RegexLib.SingleLineCComments, css: 'dp-comment' }, // one line comments
{ regex: dp.sh.RegexLib.MultiLineCComments, css: 'dp-comment' }, // multiline comments
{ regex: dp.sh.RegexLib.DoubleQuotedString, css: 'dp-string' }, // strings
{ regex: dp.sh.RegexLib.SingleQuotedString, css: 'dp-string' }, // strings
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'dp-number' }, // numbers
{ regex: new RegExp('(?!\\@interface\\b)\\@[\\$\\w]+\\b', 'g'), css: 'dp-annotation' }, // annotation @anno
{ regex: new RegExp('\\@interface\\b', 'g'), css: 'dp-keyword' }, // @interface keyword
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'dp-keyword' } // java keyword
];
this.CssClass = 'dp-j';
}
dp.sh.Brushes.Java.prototype = new dp.sh.Highlighter();
dp.sh.Brushes.Java.Aliases = ['java'];
dp.sh.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:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b','gi'),css:'number'},{regex:new RegExp('(?!\\@interface\\b)\\@[\\$\\w]+\\b','g'),css:'annotation'},{regex:new RegExp('\\@interface\\b','g'),css:'keyword'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-j';this.Style='.dp-j .annotation { color: #646464; }'+'.dp-j .number { color: #C00000; }';}
dp.sh.Brushes.Java.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Java.Aliases=['java'];