From 58837ee98981270b7812877f25a785d943946f21 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 9 May 2010 22:53:25 +0000 Subject: [PATCH] Remove codepress dir. see #13307. git-svn-id: https://develop.svn.wordpress.org/trunk@14527 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/codepress/codepress.css | 21 - wp-includes/js/codepress/codepress.html | 35 -- wp-includes/js/codepress/codepress.js | 137 ------ wp-includes/js/codepress/engines/gecko.js | 293 ----------- wp-includes/js/codepress/engines/khtml.js | 0 wp-includes/js/codepress/engines/msie.js | 304 ------------ wp-includes/js/codepress/engines/older.js | 0 wp-includes/js/codepress/engines/opera.js | 260 ---------- .../js/codepress/images/line-numbers.png | Bin 16556 -> 0 bytes wp-includes/js/codepress/languages/asp.css | 71 --- wp-includes/js/codepress/languages/asp.js | 117 ----- wp-includes/js/codepress/languages/autoit.css | 13 - wp-includes/js/codepress/languages/autoit.js | 32 -- wp-includes/js/codepress/languages/csharp.css | 9 - wp-includes/js/codepress/languages/csharp.js | 25 - wp-includes/js/codepress/languages/css.css | 10 - wp-includes/js/codepress/languages/css.js | 23 - .../js/codepress/languages/generic.css | 9 - wp-includes/js/codepress/languages/generic.js | 25 - wp-includes/js/codepress/languages/html.css | 13 - wp-includes/js/codepress/languages/html.js | 59 --- wp-includes/js/codepress/languages/java.css | 7 - wp-includes/js/codepress/languages/java.js | 24 - .../js/codepress/languages/javascript.css | 8 - .../js/codepress/languages/javascript.js | 30 -- wp-includes/js/codepress/languages/perl.css | 11 - wp-includes/js/codepress/languages/perl.js | 27 -- wp-includes/js/codepress/languages/php.css | 12 - wp-includes/js/codepress/languages/php.js | 61 --- wp-includes/js/codepress/languages/ruby.css | 10 - wp-includes/js/codepress/languages/ruby.js | 26 - wp-includes/js/codepress/languages/sql.css | 10 - wp-includes/js/codepress/languages/sql.js | 30 -- wp-includes/js/codepress/languages/text.css | 5 - wp-includes/js/codepress/languages/text.js | 9 - .../js/codepress/languages/vbscript.css | 71 --- .../js/codepress/languages/vbscript.js | 117 ----- wp-includes/js/codepress/languages/xsl.css | 15 - wp-includes/js/codepress/languages/xsl.js | 103 ---- wp-includes/js/codepress/license.txt | 458 ------------------ 40 files changed, 2490 deletions(-) delete mode 100644 wp-includes/js/codepress/codepress.css delete mode 100644 wp-includes/js/codepress/codepress.html delete mode 100644 wp-includes/js/codepress/codepress.js delete mode 100644 wp-includes/js/codepress/engines/gecko.js delete mode 100644 wp-includes/js/codepress/engines/khtml.js delete mode 100644 wp-includes/js/codepress/engines/msie.js delete mode 100644 wp-includes/js/codepress/engines/older.js delete mode 100644 wp-includes/js/codepress/engines/opera.js delete mode 100644 wp-includes/js/codepress/images/line-numbers.png delete mode 100644 wp-includes/js/codepress/languages/asp.css delete mode 100644 wp-includes/js/codepress/languages/asp.js delete mode 100644 wp-includes/js/codepress/languages/autoit.css delete mode 100644 wp-includes/js/codepress/languages/autoit.js delete mode 100644 wp-includes/js/codepress/languages/csharp.css delete mode 100644 wp-includes/js/codepress/languages/csharp.js delete mode 100644 wp-includes/js/codepress/languages/css.css delete mode 100644 wp-includes/js/codepress/languages/css.js delete mode 100644 wp-includes/js/codepress/languages/generic.css delete mode 100644 wp-includes/js/codepress/languages/generic.js delete mode 100644 wp-includes/js/codepress/languages/html.css delete mode 100644 wp-includes/js/codepress/languages/html.js delete mode 100644 wp-includes/js/codepress/languages/java.css delete mode 100644 wp-includes/js/codepress/languages/java.js delete mode 100644 wp-includes/js/codepress/languages/javascript.css delete mode 100644 wp-includes/js/codepress/languages/javascript.js delete mode 100644 wp-includes/js/codepress/languages/perl.css delete mode 100644 wp-includes/js/codepress/languages/perl.js delete mode 100644 wp-includes/js/codepress/languages/php.css delete mode 100644 wp-includes/js/codepress/languages/php.js delete mode 100644 wp-includes/js/codepress/languages/ruby.css delete mode 100644 wp-includes/js/codepress/languages/ruby.js delete mode 100644 wp-includes/js/codepress/languages/sql.css delete mode 100644 wp-includes/js/codepress/languages/sql.js delete mode 100644 wp-includes/js/codepress/languages/text.css delete mode 100644 wp-includes/js/codepress/languages/text.js delete mode 100644 wp-includes/js/codepress/languages/vbscript.css delete mode 100644 wp-includes/js/codepress/languages/vbscript.js delete mode 100644 wp-includes/js/codepress/languages/xsl.css delete mode 100644 wp-includes/js/codepress/languages/xsl.js delete mode 100644 wp-includes/js/codepress/license.txt diff --git a/wp-includes/js/codepress/codepress.css b/wp-includes/js/codepress/codepress.css deleted file mode 100644 index 3a4a00a741..0000000000 --- a/wp-includes/js/codepress/codepress.css +++ /dev/null @@ -1,21 +0,0 @@ -body { - margin-top:13px; - _margin-top:14px; - background:white; - margin-left:32px; - font-family:monospace; - font-size:13px; - white-space:pre; - background-image:url("images/line-numbers.png"); - background-repeat:repeat-y; - background-position:0 3px; - line-height:16px; - height:100%; -} -pre {margin:0;} -html>body{background-position:0 2px;} -P {margin:0;padding:0;border:0;outline:0;display:block;white-space:pre;} -b, i, s, u, a, em, tt, ins, big, cite, strong, var, dfn {text-decoration:none;font-weight:normal;font-style:normal;font-size:13px;} - -body.hide-line-numbers {background:white;margin-left:16px;} -body.show-line-numbers {background-image:url("images/line-numbers.png");margin-left:32px;} \ No newline at end of file diff --git a/wp-includes/js/codepress/codepress.html b/wp-includes/js/codepress/codepress.html deleted file mode 100644 index d9711d6976..0000000000 --- a/wp-includes/js/codepress/codepress.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - CodePress - Real Time Syntax Highlighting Editor written in JavaScript - - - - - - - - - diff --git a/wp-includes/js/codepress/codepress.js b/wp-includes/js/codepress/codepress.js deleted file mode 100644 index 804f29a005..0000000000 --- a/wp-includes/js/codepress/codepress.js +++ /dev/null @@ -1,137 +0,0 @@ -/* - * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ - * - * Copyright (C) 2006 Fernando M.A.d.S. - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - -CodePress = function(obj) { - var self = document.createElement('iframe'); - self.textarea = obj; - self.textarea.disabled = true; - self.textarea.style.overflow = 'hidden'; - self.style.height = self.textarea.clientHeight +'px'; - self.style.width = self.textarea.clientWidth +'px'; - self.textarea.style.overflow = 'auto'; - self.style.border = '1px solid gray'; - self.frameBorder = 0; // remove IE internal iframe border - self.style.visibility = 'hidden'; - self.style.position = 'absolute'; - self.options = self.textarea.className; - - self.initialize = function() { - self.editor = self.contentWindow.CodePress; - self.editor.body = self.contentWindow.document.getElementsByTagName('body')[0]; - self.editor.setCode(self.textarea.value); - self.setOptions(); - self.editor.syntaxHighlight('init'); - self.textarea.style.display = 'none'; - self.style.position = 'static'; - self.style.visibility = 'visible'; - self.style.display = 'inline'; - } - - // obj can by a textarea id or a string (code) - self.edit = function(obj,language) { - if(obj) self.textarea.value = document.getElementById(obj) ? document.getElementById(obj).value : obj; - if(!self.textarea.disabled) return; - self.language = language ? language : self.getLanguage(); - self.src = CodePress.path+'codepress.html?language='+self.language+'&ts='+(new Date).getTime(); - if(self.attachEvent) self.attachEvent('onload',self.initialize); - else self.addEventListener('load',self.initialize,false); - } - - self.getLanguage = function() { - for (language in CodePress.languages) - if(self.options.match('\\b'+language+'\\b')) - return CodePress.languages[language] ? language : 'generic'; - } - - self.setOptions = function() { - if(self.options.match('autocomplete-off')) self.toggleAutoComplete(); - if(self.options.match('readonly-on')) self.toggleReadOnly(); - if(self.options.match('linenumbers-off')) self.toggleLineNumbers(); - } - - self.getCode = function() { - return self.textarea.disabled ? self.editor.getCode() : self.textarea.value; - } - - self.setCode = function(code) { - self.textarea.disabled ? self.editor.setCode(code) : self.textarea.value = code; - } - - self.toggleAutoComplete = function() { - self.editor.autocomplete = (self.editor.autocomplete) ? false : true; - } - - self.toggleReadOnly = function() { - self.textarea.readOnly = (self.textarea.readOnly) ? false : true; - if(self.style.display != 'none') // prevent exception on FF + iframe with display:none - self.editor.readOnly(self.textarea.readOnly ? true : false); - } - - self.toggleLineNumbers = function() { - var cn = self.editor.body.className; - self.editor.body.className = (cn==''||cn=='show-line-numbers') ? 'hide-line-numbers' : 'show-line-numbers'; - } - - self.toggleEditor = function() { - if(self.textarea.disabled) { - self.textarea.value = self.getCode(); - self.textarea.disabled = false; - self.style.display = 'none'; - self.textarea.style.display = 'inline'; - } - else { - self.textarea.disabled = true; - self.setCode(self.textarea.value); - self.editor.syntaxHighlight('init'); - self.style.display = 'inline'; - self.textarea.style.display = 'none'; - } - } - - self.edit(); - return self; -} - -CodePress.languages = { - csharp : 'C#', - css : 'CSS', - generic : 'Generic', - html : 'HTML', - java : 'Java', - javascript : 'JavaScript', - perl : 'Perl', - ruby : 'Ruby', - php : 'PHP', - text : 'Text', - sql : 'SQL', - vbscript : 'VBScript' -} - - -CodePress.run = function() { - // Modified for WordPress compat to prevent loading on webkit and to - // reference a codepress_path which is specified externally. - if (navigator.userAgent.toLowerCase().indexOf('webkit') != -1) - return; - CodePress.path = codepress_path; - var t = document.getElementsByTagName('textarea'), i, id; - for(i=0,n=t.length;i - * - * Developers: - * Fernando M.A.d.S. - * Michael Hurni - * Contributors: - * Martin D. Kirk - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - -CodePress = { - scrolling : false, - autocomplete : true, - - // set initial vars and start sh - initialize : function() { - if(typeof(editor)=='undefined' && !arguments[0]) return; - body = document.getElementsByTagName('body')[0]; - body.innerHTML = body.innerHTML.replace(/\n/g,""); - chars = '|32|46|62|8|'; // charcodes that trigger syntax highlighting - cc = '\u2009'; // carret char - editor = document.getElementsByTagName('pre')[0]; - document.designMode = 'on'; - document.addEventListener('keypress', this.keyHandler, true); - window.addEventListener('scroll', function() { if(!CodePress.scrolling) CodePress.syntaxHighlight('scroll') }, false); - completeChars = this.getCompleteChars(); - completeEndingChars = this.getCompleteEndingChars(); - }, - - // treat key bindings - keyHandler : function(evt) { - keyCode = evt.keyCode; - charCode = evt.charCode; - fromChar = String.fromCharCode(charCode); - - if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && charCode!=90) { // shortcuts = ctrl||appleKey+shift+key!=z(undo) - CodePress.shortcuts(charCode?charCode:keyCode); - } - else if( (completeEndingChars.indexOf('|'+fromChar+'|')!= -1 || completeChars.indexOf('|'+fromChar+'|')!=-1) && CodePress.autocomplete) { // auto complete - if(!CodePress.completeEnding(fromChar)) - CodePress.complete(fromChar); - } - else if(chars.indexOf('|'+charCode+'|')!=-1||keyCode==13) { // syntax highlighting - top.setTimeout(function(){CodePress.syntaxHighlight('generic');},100); - } - else if(keyCode==9 || evt.tabKey) { // snippets activation (tab) - CodePress.snippets(evt); - } - else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed - CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML; - } - else if((charCode==122||charCode==121||charCode==90) && evt.ctrlKey) { // undo and redo - (charCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo(); - evt.preventDefault(); - } - else if(charCode==118 && evt.ctrlKey) { // handle paste - top.setTimeout(function(){CodePress.syntaxHighlight('generic');},100); - } - else if(charCode==99 && evt.ctrlKey) { // handle cut - //alert(window.getSelection().getRangeAt(0).toString().replace(/\t/g,'FFF')); - } - - }, - - // put cursor back to its original position after every parsing - findString : function() { - if(self.find(cc)) - window.getSelection().getRangeAt(0).deleteContents(); - }, - - // split big files, highlighting parts of it - split : function(code,flag) { - if(flag=='scroll') { - this.scrolling = true; - return code; - } - else { - this.scrolling = false; - mid = code.indexOf(cc); - if(mid-2000<0) {ini=0;end=4000;} - else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;} - else {ini=mid-2000;end=mid+2000;} - code = code.substring(ini,end); - return code; - } - }, - - getEditor : function() { - if(!document.getElementsByTagName('pre')[0]) { - body = document.getElementsByTagName('body')[0]; - if(!body.innerHTML) return body; - if(body.innerHTML=="
") body.innerHTML = "
 
"; - else body.innerHTML = "
"+body.innerHTML+"
"; - } - return document.getElementsByTagName('pre')[0]; - }, - - // syntax highlighting parser - syntaxHighlight : function(flag) { - //if(document.designMode=='off') document.designMode='on' - if(flag != 'init') { window.getSelection().getRangeAt(0).insertNode(document.createTextNode(cc));} - editor = CodePress.getEditor(); - o = editor.innerHTML; - o = o.replace(/
/g,'\n'); - o = o.replace(/<.*?>/g,''); - x = z = this.split(o,flag); - x = x.replace(/\n/g,'
'); - - if(arguments[1]&&arguments[2]) x = x.replace(arguments[1],arguments[2]); - - for(i=0;i/g,'>'); - if(content.indexOf('$0')<0) content += cc; - else content = content.replace(/\$0/,cc); - content = content.replace(/\n/g,'
'); - var pattern = new RegExp(trigger+cc,'gi'); - evt.preventDefault(); // prevent the tab key from being added - this.syntaxHighlight('snippets',pattern,content); - } - } - }, - - readOnly : function() { - document.designMode = (arguments[0]) ? 'off' : 'on'; - }, - - complete : function(trigger) { - window.getSelection().getRangeAt(0).deleteContents(); - var complete = Language.complete; - for (var i=0; i/g,'\n'); - code = code.replace(/\u2009/g,''); - code = code.replace(/<.*?>/g,''); - code = code.replace(/</g,'<'); - code = code.replace(/>/g,'>'); - code = code.replace(/&/gi,'&'); - return code; - }, - - // put code inside editor - setCode : function() { - var code = arguments[0]; - code = code.replace(/\u2009/gi,''); - code = code.replace(/&/gi,'&'); - code = code.replace(//g,'>'); - editor.innerHTML = code; - if (code == '') - document.getElementsByTagName('body')[0].innerHTML = ''; - }, - - // undo and redo methods - actions : { - pos : -1, // actual history position - history : [], // history vector - - undo : function() { - editor = CodePress.getEditor(); - if(editor.innerHTML.indexOf(cc)==-1){ - if(editor.innerHTML != " ") - window.getSelection().getRangeAt(0).insertNode(document.createTextNode(cc)); - this.history[this.pos] = editor.innerHTML; - } - this.pos --; - if(typeof(this.history[this.pos])=='undefined') this.pos ++; - editor.innerHTML = this.history[this.pos]; - if(editor.innerHTML.indexOf(cc)>-1) editor.innerHTML+=cc; - CodePress.findString(); - }, - - redo : function() { - // editor = CodePress.getEditor(); - this.pos++; - if(typeof(this.history[this.pos])=='undefined') this.pos--; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - next : function() { // get next vector position and clean old ones - if(this.pos>20) this.history[this.pos-21] = undefined; - return ++this.pos; - } - } -} - -Language={}; -window.addEventListener('load', function() { CodePress.initialize('new'); }, true); \ No newline at end of file diff --git a/wp-includes/js/codepress/engines/khtml.js b/wp-includes/js/codepress/engines/khtml.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/wp-includes/js/codepress/engines/msie.js b/wp-includes/js/codepress/engines/msie.js deleted file mode 100644 index 2558c395d3..0000000000 --- a/wp-includes/js/codepress/engines/msie.js +++ /dev/null @@ -1,304 +0,0 @@ -/* - * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ - * - * Copyright (C) 2007 Fernando M.A.d.S. - * - * Developers: - * Fernando M.A.d.S. - * Michael Hurni - * Contributors: - * Martin D. Kirk - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - -CodePress = { - scrolling : false, - autocomplete : true, - - // set initial vars and start sh - initialize : function() { - if(typeof(editor)=='undefined' && !arguments[0]) return; - chars = '|32|46|62|'; // charcodes that trigger syntax highlighting - cc = '\u2009'; // carret char - editor = document.getElementsByTagName('pre')[0]; - editor.contentEditable = 'true'; - document.getElementsByTagName('body')[0].onfocus = function() {editor.focus();} - document.attachEvent('onkeydown', this.metaHandler); - document.attachEvent('onkeypress', this.keyHandler); - window.attachEvent('onscroll', function() { if(!CodePress.scrolling) setTimeout(function(){CodePress.syntaxHighlight('scroll')},1)}); - completeChars = this.getCompleteChars(); - completeEndingChars = this.getCompleteEndingChars(); - setTimeout(function() { window.scroll(0,0) },50); // scroll IE to top - }, - - // treat key bindings - keyHandler : function(evt) { - charCode = evt.keyCode; - fromChar = String.fromCharCode(charCode); - - if( (completeEndingChars.indexOf('|'+fromChar+'|')!= -1 || completeChars.indexOf('|'+fromChar+'|')!=-1 )&& CodePress.autocomplete) { // auto complete - if(!CodePress.completeEnding(fromChar)) - CodePress.complete(fromChar); - } - else if(chars.indexOf('|'+charCode+'|')!=-1||charCode==13) { // syntax highlighting - CodePress.syntaxHighlight('generic'); - } - }, - - metaHandler : function(evt) { - keyCode = evt.keyCode; - - if(keyCode==9 || evt.tabKey) { - CodePress.snippets(); - } - else if((keyCode==122||keyCode==121||keyCode==90) && evt.ctrlKey) { // undo and redo - (keyCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo(); - evt.returnValue = false; - } - else if(keyCode==34||keyCode==33) { // handle page up/down for IE - self.scrollBy(0, (keyCode==34) ? 200 : -200); - evt.returnValue = false; - } - else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed - CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML; - } - else if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && keyCode!=90) { // shortcuts = ctrl||appleKey+shift+key!=z(undo) - CodePress.shortcuts(keyCode); - evt.returnValue = false; - } - else if(keyCode==86 && evt.ctrlKey) { // handle paste - window.clipboardData.setData('Text',window.clipboardData.getData('Text').replace(/\t/g,'\u2008')); - top.setTimeout(function(){CodePress.syntaxHighlight('paste');},10); - } - else if(keyCode==67 && evt.ctrlKey) { // handle cut - // window.clipboardData.setData('Text',x[0]); - // code = window.clipboardData.getData('Text'); - } - }, - - // put cursor back to its original position after every parsing - - - findString : function() { - range = self.document.body.createTextRange(); - if(range.findText(cc)){ - range.select(); - range.text = ''; - } - }, - - // split big files, highlighting parts of it - split : function(code,flag) { - if(flag=='scroll') { - this.scrolling = true; - return code; - } - else { - this.scrolling = false; - mid = code.indexOf(cc); - if(mid-2000<0) {ini=0;end=4000;} - else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;} - else {ini=mid-2000;end=mid+2000;} - code = code.substring(ini,end); - return code.substring(code.indexOf('

'),code.lastIndexOf('

')+4); - } - }, - - // syntax highlighting parser - syntaxHighlight : function(flag) { - if(flag!='init') document.selection.createRange().text = cc; - o = editor.innerHTML; - if(flag=='paste') { // fix pasted text - o = o.replace(/
/g,'\r\n'); - o = o.replace(/\u2008/g,'\t'); - } - o = o.replace(/

/g,'\n'); - o = o.replace(/<\/P>/g,'\r'); - o = o.replace(/<.*?>/g,''); - o = o.replace(/ /g,''); - o = '

'+o+'

'; - o = o.replace(/\n\r/g,'

'); - o = o.replace(/\n/g,'

'); - o = o.replace(/\r/g,'<\/P>'); - o = o.replace(/

(

)+/,'

'); - o = o.replace(/<\/P>(<\/P>)+/,'

'); - o = o.replace(/

<\/P>/g,'


'); - x = z = this.split(o,flag); - - if(arguments[1]&&arguments[2]) x = x.replace(arguments[1],arguments[2]); - - for(i=0;i/g,'>'); - if(content.indexOf('$0')<0) content += cc; - else content = content.replace(/\$0/,cc); - content = content.replace(/\n/g,'

'); - var pattern = new RegExp(trigger+cc,"gi"); - this.syntaxHighlight('snippets',pattern,content); - } - } - }, - - readOnly : function() { - editor.contentEditable = (arguments[0]) ? 'false' : 'true'; - }, - - complete : function(trigger) { - var complete = Language.complete; - for (var i=0; i/g,'\n'); - code = code.replace(/<\/p>/gi,'\r'); - code = code.replace(/

/i,''); // IE first line fix - code = code.replace(/

/gi,'\n'); - code = code.replace(/ /gi,''); - code = code.replace(/\u2009/g,''); - code = code.replace(/<.*?>/g,''); - code = code.replace(/</g,'<'); - code = code.replace(/>/g,'>'); - code = code.replace(/&/gi,'&'); - return code; - }, - - // put code inside editor - setCode : function() { - var code = arguments[0]; - code = code.replace(/\u2009/gi,''); - code = code.replace(/&/gi,'&'); - code = code.replace(//g,'>'); - editor.innerHTML = '

'+code+'
'; - }, - - - // undo and redo methods - actions : { - pos : -1, // actual history position - history : [], // history vector - - undo : function() { - if(editor.innerHTML.indexOf(cc)==-1){ - document.selection.createRange().text = cc; - this.history[this.pos] = editor.innerHTML; - } - this.pos--; - if(typeof(this.history[this.pos])=='undefined') this.pos++; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - redo : function() { - this.pos++; - if(typeof(this.history[this.pos])=='undefined') this.pos--; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - next : function() { // get next vector position and clean old ones - if(this.pos>20) this.history[this.pos-21] = undefined; - return ++this.pos; - } - } -} - -Language={}; -window.attachEvent('onload', function() { CodePress.initialize('new');}); \ No newline at end of file diff --git a/wp-includes/js/codepress/engines/older.js b/wp-includes/js/codepress/engines/older.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/wp-includes/js/codepress/engines/opera.js b/wp-includes/js/codepress/engines/opera.js deleted file mode 100644 index 155bf098a3..0000000000 --- a/wp-includes/js/codepress/engines/opera.js +++ /dev/null @@ -1,260 +0,0 @@ -/* - * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ - * - * Copyright (C) 2007 Fernando M.A.d.S. - * - * Contributors : - * - * Michael Hurni - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - - -CodePress = { - scrolling : false, - autocomplete : true, - - // set initial vars and start sh - initialize : function() { - if(typeof(editor)=='undefined' && !arguments[0]) return; - chars = '|32|46|62|'; // charcodes that trigger syntax highlighting - cc = '\u2009'; // control char - editor = document.getElementsByTagName('body')[0]; - document.designMode = 'on'; - document.addEventListener('keyup', this.keyHandler, true); - window.addEventListener('scroll', function() { if(!CodePress.scrolling) CodePress.syntaxHighlight('scroll') }, false); - completeChars = this.getCompleteChars(); -// CodePress.syntaxHighlight('init'); - }, - - // treat key bindings - keyHandler : function(evt) { - keyCode = evt.keyCode; - charCode = evt.charCode; - - if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && charCode!=90) { // shortcuts = ctrl||appleKey+shift+key!=z(undo) - CodePress.shortcuts(charCode?charCode:keyCode); - } - else if(completeChars.indexOf('|'+String.fromCharCode(charCode)+'|')!=-1 && CodePress.autocomplete) { // auto complete - CodePress.complete(String.fromCharCode(charCode)); - } - else if(chars.indexOf('|'+charCode+'|')!=-1||keyCode==13) { // syntax highlighting - CodePress.syntaxHighlight('generic'); - } - else if(keyCode==9 || evt.tabKey) { // snippets activation (tab) - CodePress.snippets(evt); - } - else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed - CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML; - } - else if((charCode==122||charCode==121||charCode==90) && evt.ctrlKey) { // undo and redo - (charCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo(); - evt.preventDefault(); - } - else if(keyCode==86 && evt.ctrlKey) { // paste - // TODO: pasted text should be parsed and highlighted - } - }, - - // put cursor back to its original position after every parsing - findString : function() { - var sel = window.getSelection(); - var range = window.document.createRange(); - var span = window.document.getElementsByTagName('span')[0]; - - range.selectNode(span); - sel.removeAllRanges(); - sel.addRange(range); - span.parentNode.removeChild(span); - //if(self.find(cc)) - //window.getSelection().getRangeAt(0).deleteContents(); - }, - - // split big files, highlighting parts of it - split : function(code,flag) { - if(flag=='scroll') { - this.scrolling = true; - return code; - } - else { - this.scrolling = false; - mid = code.indexOf(''); - if(mid-2000<0) {ini=0;end=4000;} - else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;} - else {ini=mid-2000;end=mid+2000;} - code = code.substring(ini,end); - return code; - } - }, - - // syntax highlighting parser - syntaxHighlight : function(flag) { - //if(document.designMode=='off') document.designMode='on' - if(flag!='init') { - var span = document.createElement('span'); - window.getSelection().getRangeAt(0).insertNode(span); - } - - o = editor.innerHTML; -// o = o.replace(/
/g,'\r\n'); -// o = o.replace(/<(b|i|s|u|a|em|tt|ins|big|cite|strong)?>/g,''); - //alert(o) - o = o.replace(/<(?!span|\/span|br).*?>/gi,''); -// alert(o) -// x = o; - x = z = this.split(o,flag); - //alert(z) -// x = x.replace(/\r\n/g,'
'); - x = x.replace(/\t/g, ' '); - - - if(arguments[1]&&arguments[2]) x = x.replace(arguments[1],arguments[2]); - - for(i=0;i/g,'>'); - if(content.indexOf('$0')<0) content += cc; - else content = content.replace(/\$0/,cc); - content = content.replace(/\n/g,'
'); - var pattern = new RegExp(trigger+cc,'gi'); - evt.preventDefault(); // prevent the tab key from being added - this.syntaxHighlight('snippets',pattern,content); - } - } - }, - - readOnly : function() { - document.designMode = (arguments[0]) ? 'off' : 'on'; - }, - - complete : function(trigger) { - window.getSelection().getRangeAt(0).deleteContents(); - var complete = Language.complete; - for (var i=0; i/g,'\n'); - code = code.replace(/\u2009/g,''); - code = code.replace(/<.*?>/g,''); - code = code.replace(/</g,'<'); - code = code.replace(/>/g,'>'); - code = code.replace(/&/gi,'&'); - return code; - }, - - // put code inside editor - setCode : function() { - var code = arguments[0]; - code = code.replace(/\u2009/gi,''); - code = code.replace(/&/gi,'&'); - code = code.replace(//g,'>'); - editor.innerHTML = code; - }, - - // undo and redo methods - actions : { - pos : -1, // actual history position - history : [], // history vector - - undo : function() { - if(editor.innerHTML.indexOf(cc)==-1){ - window.getSelection().getRangeAt(0).insertNode(document.createTextNode(cc)); - this.history[this.pos] = editor.innerHTML; - } - this.pos--; - if(typeof(this.history[this.pos])=='undefined') this.pos++; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - redo : function() { - this.pos++; - if(typeof(this.history[this.pos])=='undefined') this.pos--; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - next : function() { // get next vector position and clean old ones - if(this.pos>20) this.history[this.pos-21] = undefined; - return ++this.pos; - } - } -} - -Language={}; -window.addEventListener('load', function() { CodePress.initialize('new'); }, true); diff --git a/wp-includes/js/codepress/images/line-numbers.png b/wp-includes/js/codepress/images/line-numbers.png deleted file mode 100644 index ffea4e6aa163ba2cf184e2970ef11724bce4ef72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16556 zcmdUXcU+TK-?y!|)~bjoNHq#o3W6&_#V9gbWhkf!sEA^sA`TEE3X&j6oXke5B9UD{ z6a@*OAV|n10#OLFfApU?aLWvMjdoa=ml-*p}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o2#SG z2m0t9oKF)ITby-1tm$V8NnUK<8U8LsR!l9n{X6$yfaP*5hBWV>$GI|jQ6v#!OUf^c zQ@!$PK&t-ndfngGNW?X9(8z!Pf}QVH^S9*vCaUXaWc8Lk6$sLYv%fFozOrMX^$9w& z)dtIy=F7h;ka2Y|AzXts@9o*0=GQ+fG=_*(a0J_3yGN9T?aw+RzPGRjV?nRwUH0gT zw4->p4B0i0C?;khfQ#uMyOuXk;e5Hz?JO&lQOZ|NN+r^;vRgB$e++!ftL97isQ(ni z+* */ -cite, s cite { - color:red; - font-weight:bold; -} \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/asp.js b/wp-includes/js/codepress/languages/asp.js deleted file mode 100644 index 21e78dd887..0000000000 --- a/wp-includes/js/codepress/languages/asp.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - * CodePress regular expressions for ASP-vbscript syntax highlighting - */ - -// ASP VBScript -Language.syntax = [ -// all tags - { input : /(<[^!%|!%@]*?>)/g, output : '$1' }, -// style tags - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, -// script tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, -// strings "" and attributes - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, -// ASP Comment - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, -// <%.* - { input : /(<%)/g, output : '$1' }, -// .*%> - { input : /(%>)/g, output : '$1' }, -// <%@...%> - { input : /(<%@)(.+?)(%>)/gi, output : '$1$2$3' }, -//Numbers - { input : /\b([\d]+)\b/g, output : '$1' }, -// Reserved Words 1 (Blue) - { input : /\b(And|As|ByRef|ByVal|Call|Case|Class|Const|Dim|Do|Each|Else|ElseIf|Empty|End|Eqv|Exit|False|For|Function)\b/gi, output : '
$1' }, - { input : /\b(Get|GoTo|If|Imp|In|Is|Let|Loop|Me|Mod|Enum|New|Next|Not|Nothing|Null|On|Option|Or|Private|Public|ReDim|Rem)\b/gi, output : '$1' }, - { input : /\b(Resume|Select|Set|Stop|Sub|Then|To|True|Until|Wend|While|With|Xor|Execute|Randomize|Erase|ExecuteGlobal|Explicit|step)\b/gi, output : '$1' }, -// Reserved Words 2 (Purple) - { input : /\b(Abandon|Abs|AbsolutePage|AbsolutePosition|ActiveCommand|ActiveConnection|ActualSize|AddHeader|AddNew|AppendChunk)\b/gi, output : '$1' }, - { input : /\b(AppendToLog|Application|Array|Asc|Atn|Attributes|BeginTrans|BinaryRead|BinaryWrite|BOF|Bookmark|Boolean|Buffer|Byte)\b/gi, output : '$1' }, - { input : /\b(CacheControl|CacheSize|Cancel|CancelBatch|CancelUpdate|CBool|CByte|CCur|CDate|CDbl|Charset|Chr|CInt|Clear)\b/gi, output : '$1' }, - { input : /\b(ClientCertificate|CLng|Clone|Close|CodePage|CommandText|CommandType|CommandTimeout|CommitTrans|CompareBookmarks|ConnectionString|ConnectionTimeout)\b/gi, output : '$1' }, - { input : /\b(Contents|ContentType|Cookies|Cos|CreateObject|CreateParameter|CSng|CStr|CursorLocation|CursorType|DataMember|DataSource|Date|DateAdd|DateDiff)\b/gi, output : '$1' }, - { input : /\b(DatePart|DateSerial|DateValue|Day|DefaultDatabase|DefinedSize|Delete|Description|Double|EditMode|Eof|EOF|err|Error)\b/gi, output : '$1' }, - { input : /\b(Exp|Expires|ExpiresAbsolute|Filter|Find|Fix|Flush|Form|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent)\b/gi, output : '$1' }, - { input : /\b(GetChunk|GetLastError|GetRows|GetString|Global|HelpContext|HelpFile|Hex|Hour|HTMLEncode|IgnoreCase|Index|InStr|InStrRev)\b/gi, output : '$1' }, - { input : /\b(Int|Integer|IsArray|IsClientConnected|IsDate|IsolationLevel|Join|LBound|LCase|LCID|Left|Len|Lock|LockType|Log|Long|LTrim)\b/gi, output : '$1' }, - { input : /\b(MapPath|MarshalOptions|MaxRecords|Mid|Minute|Mode|Month|MonthName|Move|MoveFirst|MoveLast|MoveNext|MovePrevious|Name|NextRecordset)\b/gi, output : '$1' }, - { input : /\b(Now|Number|NumericScale|ObjectContext|Oct|Open|OpenSchema|OriginalValue|PageCount|PageSize|Pattern|PICS|Precision|Prepared|Property)\b/gi, output : '$1' }, - { input : /\b(Provider|QueryString|RecordCount|Redirect|RegExp|Remove|RemoveAll|Replace|Requery|Request|Response|Resync|Right|Rnd)\b/gi, output : '$1' }, - { input : /\b(RollbackTrans|RTrim|Save|ScriptTimeout|Second|Seek|Server|ServerVariables|Session|SessionID|SetAbort|SetComplete|Sgn)\b/gi, output : '$1' }, - { input : /\b(Sin|Size|Sort|Source|Space|Split|Sqr|State|StaticObjects|Status|StayInSync|StrComp|String|StrReverse|Supports|Tan|Time)\b/gi, output : '$1' }, - { input : /\b(Timeout|Timer|TimeSerial|TimeValue|TotalBytes|Transfer|Trim|Type|Type|UBound|UCase|UnderlyingValue|UnLock|Update|UpdateBatch)\b/gi, output : '$1' }, - { input : /\b(URLEncode|Value|Value|Version|Weekday|WeekdayName|Write|Year)\b/gi, output : '$1' }, -// Reserved Words 3 (Turquis) - { input : /\b(vbBlack|vbRed|vbGreen|vbYellow|vbBlue|vbMagenta|vbCyan|vbWhite|vbBinaryCompare|vbTextCompare)\b/gi, output : '$1' }, - { input : /\b(vbSunday|vbMonday|vbTuesday|vbWednesday|vbThursday|vbFriday|vbSaturday|vbUseSystemDayOfWeek)\b/gi, output : '$1' }, - { input : /\b(vbFirstJan1|vbFirstFourDays|vbFirstFullWeek|vbGeneralDate|vbLongDate|vbShortDate|vbLongTime|vbShortTime)\b/gi, output : '$1' }, - { input : /\b(vbObjectError|vbCr|VbCrLf|vbFormFeed|vbLf|vbNewLine|vbNullChar|vbNullString|vbTab|vbVerticalTab|vbUseDefault|vbTrue)\b/gi, output : '$1' }, - { input : /\b(vbFalse|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant)\b/gi, output : '$1' }, - { input : /\b(vbDataObject|vbDecimal|vbByte|vbArray)\b/gi, output : '$1' }, -// html comments - { input : /(<!--.*?-->.)/g, output : '$1' } -] - -Language.Functions = [ - // Output at index 0, must be the desired tagname surrounding a $1 - // Name is the index from the regex that marks the functionname - {input : /(function|sub)([ ]*?)(\w+)([ ]*?\()/gi , output : '$1', name : '$3'} -] - -Language.snippets = [ -//Conditional - { input : 'if', output : 'If $0 Then\n\t\nEnd If' }, - { input : 'ifelse', output : 'If $0 Then\n\t\n\nElse\n\t\nEnd If' }, - { input : 'case', output : 'Select Case $0\n\tCase ?\n\tCase Else\nEnd Select'}, -//Response - { input : 'rw', output : 'Response.Write( $0 )' }, - { input : 'resc', output : 'Response.Cookies( $0 )' }, - { input : 'resb', output : 'Response.Buffer'}, - { input : 'resflu', output : 'Response.Flush()'}, - { input : 'resend', output : 'Response.End'}, -//Request - { input : 'reqc', output : 'Request.Cookies( $0 )' }, - { input : 'rq', output : 'Request.Querystring("$0")' }, - { input : 'rf', output : 'Request.Form("$0")' }, -//FSO - { input : 'fso', output : 'Set fso = Server.CreateObject("Scripting.FileSystemObject")\n$0' }, - { input : 'setfo', output : 'Set fo = fso.getFolder($0)' }, - { input : 'setfi', output : 'Set fi = fso.getFile($0)' }, - { input : 'twr', output : 'Set f = fso.CreateTextFile($0,true)\'overwrite\nf.WriteLine()\nf.Close'}, - { input : 'tre', output : 'Set f = fso.OpenTextFile($0, 1)\nf.ReadAll\nf.Close'}, -//Server - { input : 'mapp', output : 'Server.Mappath($0)' }, -//Loops - { input : 'foreach', output : 'For Each $0 in ?\n\t\nNext' }, - { input : 'for', output : 'For $0 to ? step ?\n\t\nNext' }, - { input : 'do', output : 'Do While($0)\n\t\nLoop' }, - { input : 'untilrs', output : 'do until rs.eof\n\t\nrs.movenext\nloop' }, -//ADO - { input : 'adorec', output : 'Set rs = Server.CreateObject("ADODB.Recordset")' }, - { input : 'adocon', output : 'Set Conn = Server.CreateObject("ADODB.Connection")' }, - { input : 'adostr', output : 'Set oStr = Server.CreateObject("ADODB.Stream")' }, -//Http Request - { input : 'xmlhttp', output : 'Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")\nxmlHttp.open("GET", $0, false)\nxmlHttp.send()\n?=xmlHttp.responseText' }, - { input : 'xmldoc', output : 'Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")\nxmldoc.async=false\nxmldoc.load(request)'}, -//Functions - { input : 'func', output : 'Function $0()\n\t\n\nEnd Function'}, - { input : 'sub', output : 'Sub $0()\n\t\nEnd Sub'} - -] - -Language.complete = [ - //{ input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [ - { input : '[space]', output : ' ' }, - { input : '[enter]', output : '
' } , - { input : '[j]', output : 'testing' }, - { input : '[7]', output : '&' } -] \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/autoit.css b/wp-includes/js/codepress/languages/autoit.css deleted file mode 100644 index eb2b43b6e4..0000000000 --- a/wp-includes/js/codepress/languages/autoit.css +++ /dev/null @@ -1,13 +0,0 @@ -/** - * CodePress color styles for AutoIt syntax highlighting - */ - -u {font-style:normal;color:#000090;font-weight:bold;font-family:Monospace;} -var {color:#AA0000;font-weight:bold;font-style:normal;} -em {color:#FF33FF;} -ins {color:#AC00A9;} -i {color:#F000FF;} -b {color:#FF0000;} -a {color:#0080FF;font-weight:bold;} -s, s u, s b {color:#9999CC;font-weight:normal;} -cite, cite *{color:#009933;font-weight:normal;} \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/autoit.js b/wp-includes/js/codepress/languages/autoit.js deleted file mode 100644 index 6f5c19d0ba..0000000000 --- a/wp-includes/js/codepress/languages/autoit.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * CodePress regular expressions for AutoIt syntax highlighting - * @author: James Brooks, Michael HURNI - */ - -// AutoIt -Language.syntax = [ - { input : /({|}|\(|\))/g, output : '$1' }, // Brackets - { input : /(\*|\+|-)/g, output : '$1' }, // Operator - { input : /\"(.*?)(\"|
|<\/P>)/g, output : "\"$1$2" }, // strings double - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single - { input : /\b([\d]+)\b/g, output : '$1' }, // Numbers - { input : /#(.*?)(
|<\/P>)/g, output : '#$1$2' }, // Directives and Includes - { input : /(\$[\w\.]*)/g, output : '$1' }, // vars - { input : /(_[\w\.]*)/g, output : '$1' }, // underscored word - { input : /(\@[\w\.]*)/g, output : '$1' }, // Macros - { input : /\b(Abs|ACos|AdlibDisable|AdlibEnable|Asc|AscW|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|Binary|BinaryLen|BinaryMid|BinaryToString|BitAND|BitNOT|BitOR|BitSHIFT|BitXOR|BlockInput|Break|Call|CDTray|Ceiling|Chr|ChrW|ClipGet|ClipPut|ConsoleRead|ConsoleWrite|ConsoleWriteError|ControlClick|ControlCommand|ControlDisable|ControlEnable|ControlFocus|ControlGetFocus|ControlGetHandle|ControlGetPos|ControlGetText|ControlHide|ControlListView|ControlMove|ControlSend|ControlSetText|ControlShow|Cos|Dec|DirCopy|DirCreate|DirGetSize|DirMove|DirRemove|DllCall|DllCall|DllClose|DllOpen|DllStructCreate|DllStructGetData|DllStructGetPtr|DllStructGetSize|DllStructSetData|DriveGetDrive|DriveGetFileSystem|DriveGetLabel|DriveGetSerial|DriveGetType|DriveMapAdd|DriveMapDel|DriveMapGet|DriveSetLabel|DriveSpaceFree|DriveSpaceTotal|DriveStatus|EnvGet|EnvSet|EnvUpdate|Eval|Execute|Exp|FileChangeDir|FileClose|FileCopy|FileCreateNTFS|FileCreateShortcut|FileDelete|FileExists|FileFindFirstFile|FileFindNextFile|FileGetAttrib|FileGetLongName|FileGetShortcut|FileGetShortName|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileOpen|FileOpenDialog|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileSaveDialog|FileSelectFolder|FileSetAttrib|FileSetTime|FileWrite|FileWriteLine|Floor|FtpSetProxy|GuiCreate|GuiCtrlCreateAvi|GuiCtrlCreateButton|GuiCtrlCreateCheckbox|GuiCtrlCreateCombo|GuiCtrlCreateContextMenu|GuiCtrlCreateDate|GuiCtrlCreateDummy|GuiCtrlCreateEdit|GuiCtrlCreateGraphic|GuiCtrlCreateGroup|GuiCtrlCreateIcon|GuiCtrlCreateInput|GuiCtrlCreateLabel|GuiCtrlCreateList|GuiCtrlCreateListView|GuiCtrlCreateListViewItem|GuiCtrlCreateMenu|GuiCtrlCreateMenuItem|GuiCtrlCreateMonthCal|GuiCtrlCreateObj|GuiCtrlCreatePic|GuiCtrlCreateProgress|GuiCtrlCreateRadio|GuiCtrlCreateSlider|GuiCtrlCreateTab|GuiCtrlCreateTabItem|GuiCtrlCreateUpdown|GuiCtrlDelete|GuiCtrlGetHandle|GuiCtrlGetState|GuiCtrlRead|GuiCtrlRecvMsg|GuiCtrlSentMsg|GuiCtrlSendToDummy|GuiCtrlSetBkColor|GuiCtrlSetColor|GuiCtrlSetCursor|GuiCtrlSetData|GuiCtrlSetFont|GuiCtrlSetGraphic|GuiCtrlSetImage|GuiCtrlSetLimit|GuiCtrlSetOnEvent|GuiCtrlSetPos|GuiCtrlResizing|GuiCtrlSetState|GuiCtrlSetTip|GuiDelete|GuiGetCursorInfo|GuiGetMsg|GuiGetStyle|GuiRegisterMsg|GuiSetBkColor|GuiSetCoord|GuiSetCursor|GuiSetFont|GuiSetHelp|GuiSetIcon|GuiSetOnEvent|GuiSetStat|GuiSetStyle|GuiStartGroup|GuiSwitch|Hex|HotKeySet|HttpSetProxy|HWnd|InetGet|InetGetSize|IniDelete|IniRead|IniReadSection|IniReadSectionNames|IniRenameSection|IniWrite|IniWriteSection|InputBox|Int|IsAdmin|IsArray|IsBinary|IsBool|IsDeclared|IsDllStruct|IsFloat|IsHWnd|IsInt|IsKeyword|IsNumber|IsObj|IsString|Log|MemGetStats|Mod|MouseClick|MouseClickDrag|MouseDown|MouseGetCursor|MouseGetPos|MouseMove|MouseUp|MouseWheel|MsgBox|Number|ObjCreate|ObjEvent|ObjGet|ObjName|Ping|PixelCheckSum|PixelGetColor|PixelSearch|ProcessClose|ProcessExists|ProcessList|ProcessSetPriority|ProcessWait|ProcessWaitClose|ProgressOff|ProcessOn|ProgressSet|Random|RegDelete|RegEnumKey|RegEnumVal|RegRead|RegWrite|Round|Run|RunAsSet|RunWait|Send|SetError|SetExtended|ShellExecute|ShellExecuteWait|Shutdown|Sin|Sleep|SoundPlay|SoundSetWaveVolume|SplashImageOn|SplashOff|SplashTextOn|Sqrt|SRandom|StatusbarGetText|StderrRead|StdinWrite|StdoutRead|String|StringAddCR|StringCompare|StringFormat|StringInStr|StringIsAlNum|StringIsAlpha|StringIsASCII|StringIsDigit|StringIsFloat|StringIsInt|StringIsLower|StringIsSpace|StringIsUpper|StringIsXDigit|StringLeft|StringLen|StringLower|StringMid|StringRegExp|StringRegExpReplace|StringReplace|StringRight|StringSplit|StringStripCR|StringStripWS|StringToBinary|StringTrimLeft|StringTrimRight|StringUpper|Tan|TCPAccept|TCPCloseSocket|TCPConnect|TCPListen|TCPNameToIP|TCPrecv|TCPSend|TCPShutdown|TCPStartup|TimerDiff|TimerInit|ToolTip|TrayCreateItem|TrayCreateMenu|TrayGetMenu|TrayGetMsg|TrayItemDelete|TrayItemGetHandle|TrayItemGetState|TrayItemGetText|TrayItemSetOnEvent|TrayItemSetState|TrayItemSetText|TraySetClick|TraySetIcon|TraySetOnEvent|TraySetPauseIcon|TraySetState|TraySetToolTip|TrayTip|UBound|UDPBind|UDPCloseSocket|UDPOpen|UDPRecv|UDPSend|WinActivate|WinActive|WinClose|WinExists|WinFlash|WinGetCaretPos|WinGetClassList|WinGetClientSize|WinGetHandle|WinGetPos|WinGetProcess|WinGetState|WinGetText|WinGetTitle|WinKill|WinList|WinMenuSelectItem|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinSetOnTop|WinSetState|WinSetTitle|WinSetTrans|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/g, output : '$1' } ,// reserved words - { input : /\B;(.*?)(
|<\/P>)/g, output : ';$1$2' }, // comments - { input : /#CS(.*?)#CE/g, output : '#CS$1#CE' } // Block Comments -] - -Language.snippets = [] - -Language.complete = [ -{ input : '\'',output : '\'$0\'' }, -{ input : '"', output : '"$0"' }, -{ input : '(', output : '\($0\)' }, -{ input : '[', output : '\[$0\]' }, -{ input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/csharp.css b/wp-includes/js/codepress/languages/csharp.css deleted file mode 100644 index 8464c5ddb0..0000000000 --- a/wp-includes/js/codepress/languages/csharp.css +++ /dev/null @@ -1,9 +0,0 @@ -/* - * CodePress color styles for Java syntax highlighting - * By Edwin de Jonge - */ - -b {color:#7F0055;font-weight:bold;font-style:normal;} /* reserved words */ -a {color:#2A0088;font-weight:bold;font-style:normal;} /* types */ -i, i b, i s {color:#3F7F5F;font-weight:bold;} /* comments */ -s, s b {color:#2A00FF;font-weight:normal;} /* strings */ \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/csharp.js b/wp-includes/js/codepress/languages/csharp.js deleted file mode 100644 index 0a61fd52a9..0000000000 --- a/wp-includes/js/codepress/languages/csharp.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - * CodePress regular expressions for C# syntax highlighting - * By Edwin de Jonge - */ - -Language.syntax = [ // C# - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /\b(abstract|as|base|break|case|catch|checked|continue|default|delegate|do|else|event|explicit|extern|false|finally|fixed|for|foreach|get|goto|if|implicit|in|interface|internal|is|lock|namespace|new|null|object|operator|out|override|params|partial|private|protected|public|readonly|ref|return|set|sealed|sizeof|static|stackalloc|switch|this|throw|true|try|typeof|unchecked|unsafe|using|value|virtual|while)\b/g, output : '$1' }, // reserved words - { input : /\b(bool|byte|char|class|double|float|int|interface|long|string|struct|void)\b/g, output : '$1' }, // types - { input : /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */ -]; - -Language.snippets = []; - -Language.complete = [ // Auto complete only for 1 character - {input : '\'',output : '\'$0\'' }, - {input : '"', output : '"$0"' }, - {input : '(', output : '\($0\)' }, - {input : '[', output : '\[$0\]' }, - {input : '{', output : '{\n\t$0\n}' } -]; - -Language.shortcuts = []; \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/css.css b/wp-includes/js/codepress/languages/css.css deleted file mode 100644 index 49ba5843d7..0000000000 --- a/wp-includes/js/codepress/languages/css.css +++ /dev/null @@ -1,10 +0,0 @@ -/* - * CodePress color styles for CSS syntax highlighting - */ - -b, b a, b u {color:#000080;} /* tags, ids, classes */ -i, i b, i s, i a, i u {color:gray;} /* comments */ -s, s b {color:#a0a0dd;} /* parameters */ -a {color:#0000ff;} /* keys */ -u {color:red;} /* values */ - diff --git a/wp-includes/js/codepress/languages/css.js b/wp-includes/js/codepress/languages/css.js deleted file mode 100644 index c29059b76e..0000000000 --- a/wp-includes/js/codepress/languages/css.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * CodePress regular expressions for CSS syntax highlighting - */ - -// CSS -Language.syntax = [ - { input : /(.*?){(.*?)}/g,output : '$1{$2}' }, // tags, ids, classes, values - { input : /([\w-]*?):([^\/])/g,output : '$1:$2' }, // keys - { input : /\((.*?)\)/g,output : '($1)' }, // parameters - { input : /\/\*(.*?)\*\//g,output : '/*$1*/'} // comments -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/generic.css b/wp-includes/js/codepress/languages/generic.css deleted file mode 100644 index 712942f45a..0000000000 --- a/wp-includes/js/codepress/languages/generic.css +++ /dev/null @@ -1,9 +0,0 @@ -/* - * CodePress color styles for generic syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -u {color:darkblue;font-weight:bold;} /* special words */ -i, i b, i s, i u, i em {color:green;font-weight:normal;} /* comments */ -s, s b, s em {color:#2A00FF;font-weight:normal;} /* strings */ -em {font-weight:bold;} /* special chars */ \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/generic.js b/wp-includes/js/codepress/languages/generic.js deleted file mode 100644 index 4c866de999..0000000000 --- a/wp-includes/js/codepress/languages/generic.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - * CodePress regular expressions for generic syntax highlighting - */ - -// generic languages -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /\b(abstract|continue|for|new|switch|default|goto|boolean|do|if|private|this|break|double|protected|throw|byte|else|import|public|throws|case|return|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|const|float|while|function|label)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars; - { input : /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */ -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/html.css b/wp-includes/js/codepress/languages/html.css deleted file mode 100644 index 14882e553e..0000000000 --- a/wp-includes/js/codepress/languages/html.css +++ /dev/null @@ -1,13 +0,0 @@ -/* - * CodePress color styles for HTML syntax highlighting - */ - -b {color:#000080;} /* tags */ -ins, ins b, ins s, ins em {color:gray;} /* comments */ -s, s b {color:#7777e4;} /* attribute values */ -a {color:green;} /* links */ -u {color:#E67300;} /* forms */ -big {color:#db0000;} /* images */ -em, em b {color:#800080;} /* style */ -strong {color:#800000;} /* script */ -tt i {color:darkblue;font-weight:bold;} /* script reserved words */ diff --git a/wp-includes/js/codepress/languages/html.js b/wp-includes/js/codepress/languages/html.js deleted file mode 100644 index 4ead0b086b..0000000000 --- a/wp-includes/js/codepress/languages/html.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * CodePress regular expressions for HTML syntax highlighting - */ - -// HTML -Language.syntax = [ - { input : /(<[^!]*?>)/g, output : '$1' }, // all tags - { input : /(<a .*?>|<\/a>)/g, output : '$1' }, // links - { input : /(<img .*?>)/g, output : '$1' }, // images - { input : /(<\/?(button|textarea|form|input|select|option|label).*?>)/g, output : '$1' }, // forms - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, // style tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, // script tags - { input : /=(".*?")/g, output : '=$1' }, // atributes double quote - { input : /=('.*?')/g, output : '=$1' }, // atributes single quote - { input : /(<!--.*?-->.)/g, output : '$1' }, // comments - { input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' } // script reserved words -] - -Language.snippets = [ - { input : 'aref', output : '' }, - { input : 'h1', output : '

$0

' }, - { input : 'h2', output : '

$0

' }, - { input : 'h3', output : '

$0

' }, - { input : 'h4', output : '

$0

' }, - { input : 'h5', output : '
$0
' }, - { input : 'h6', output : '
$0
' }, - { input : 'html', output : '\n\t$0\n' }, - { input : 'head', output : '\n\t\n\t$0\n\t\n' }, - { input : 'img', output : '' }, - { input : 'input', output : '' }, - { input : 'label', output : '' }, - { input : 'legend', output : '\n\t$0\n' }, - { input : 'link', output : '' }, - { input : 'base', output : '' }, - { input : 'body', output : '\n\t$0\n' }, - { input : 'css', output : '' }, - { input : 'div', output : '
\n\t$0\n
' }, - { input : 'divid', output : '
\n\t\n
' }, - { input : 'dl', output : '
\n\t
\n\t\t$0\n\t
\n\t
\n
' }, - { input : 'fieldset', output : '
\n\t$0\n
' }, - { input : 'form', output : '
\n\t\n
' }, - { input : 'meta', output : '' }, - { input : 'p', output : '

$0

' }, - { input : 'script', output : '' }, - { input : 'scriptsrc', output : '' }, - { input : 'span', output : '$0' }, - { input : 'table', output : '\n\t\n\t\n
' }, - { input : 'style', output : '' } -] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/java.css b/wp-includes/js/codepress/languages/java.css deleted file mode 100644 index b9c4441683..0000000000 --- a/wp-includes/js/codepress/languages/java.css +++ /dev/null @@ -1,7 +0,0 @@ -/* - * CodePress color styles for Java syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;font-style:normal;} /* reserved words */ -i, i b, i s {color:#3F7F5F;font-weight:bold;} /* comments */ -s, s b {color:#2A00FF;font-weight:normal;} /* strings */ diff --git a/wp-includes/js/codepress/languages/java.js b/wp-includes/js/codepress/languages/java.js deleted file mode 100644 index f0d620d689..0000000000 --- a/wp-includes/js/codepress/languages/java.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - * CodePress regular expressions for Java syntax highlighting - */ - -// Java -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2'}, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, // strings single quote - { input : /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/g, output : '$1'}, // reserved words - { input : /([^:]|^)\/\/(.*?)(//$2$3'}, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' }// comments /* */ -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/javascript.css b/wp-includes/js/codepress/languages/javascript.css deleted file mode 100644 index acbf49a916..0000000000 --- a/wp-includes/js/codepress/languages/javascript.css +++ /dev/null @@ -1,8 +0,0 @@ -/* - * CodePress color styles for JavaScript syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -u {color:darkblue;font-weight:bold;} /* special words */ -i, i b, i s, i u {color:green;font-weight:normal;} /* comments */ -s, s b, s u {color:#2A00FF;font-weight:normal;} /* strings */ diff --git a/wp-includes/js/codepress/languages/javascript.js b/wp-includes/js/codepress/languages/javascript.js deleted file mode 100644 index 66d0fc0240..0000000000 --- a/wp-includes/js/codepress/languages/javascript.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * CodePress regular expressions for JavaScript syntax highlighting - */ - -// JavaScript -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /\b(break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' }, // reserved words - { input : /\b(alert|isNaN|parent|Array|parseFloat|parseInt|blur|clearTimeout|prompt|prototype|close|confirm|length|Date|location|Math|document|element|name|self|elements|setTimeout|navigator|status|String|escape|Number|submit|eval|Object|event|onblur|focus|onerror|onfocus|onclick|top|onload|toString|onunload|unescape|open|valueOf|window|onmouseover)\b/g, output : '$1' }, // special words - { input : /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */ -] - -Language.snippets = [ - { input : 'dw', output : 'document.write(\'$0\');' }, - { input : 'getid', output : 'document.getElementById(\'$0\')' }, - { input : 'fun', output : 'function $0(){\n\t\n}' }, - { input : 'func', output : 'function $0(){\n\t\n}' } -] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/perl.css b/wp-includes/js/codepress/languages/perl.css deleted file mode 100644 index c2d6d56d73..0000000000 --- a/wp-includes/js/codepress/languages/perl.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - * CodePress color styles for Perl syntax highlighting - * By J. Nick Koston - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -i, i b, i s, i em, i a, i u {color:gray;font-weight:normal;} /* comments */ -s, s b, s a, s em, s u {color:#2A00FF;font-weight:normal;} /* strings */ -a {color:#006700;font-weight:bold;} /* variables */ -em {color:darkblue;font-weight:bold;} /* functions */ -u {font-weight:bold;} /* special chars */ \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/perl.js b/wp-includes/js/codepress/languages/perl.js deleted file mode 100644 index 06c380d654..0000000000 --- a/wp-includes/js/codepress/languages/perl.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - * CodePress regular expressions for Perl syntax highlighting - * By J. Nick Koston - */ - -// Perl -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /([\$\@\%][\w\.]*)/g, output : '$1' }, // vars - { input : /(sub\s+)([\w\.]*)/g, output : '$1$2' }, // functions - { input : /\b(abs|accept|alarm|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|connect|continue|cos|crypt|dbmclose|dbmopen|defined|delete|die|do|dump|each|else|elsif|endgrent|endhostent|endnetent|endprotoent|endpwent|eof|eval|exec|exists|exit|fcntl|fileno|find|flock|for|foreach|fork|format|formlinegetc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyaddr|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|goto|grep|hex|hostname|if|import|index|int|ioctl|join|keys|kill|last|lc|lcfirst|length|link|listen|LoadExternals|local|localtime|log|lstat|map|mkdir|msgctl|msgget|msgrcv|msgsnd|my|next|no|oct|open|opendir|ordpack|package|pipe|pop|pos|print|printf|push|pwd|qq|quotemeta|qw|rand|read|readdir|readlink|recv|redo|ref|rename|require|reset|return|reverse|rewinddir|rindex|rmdir|scalar|seek|seekdir|select|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|stty|study|sub|substr|symlink|syscall|sysopen|sysread|system|syswritetell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unless|unlink|until|unpack|unshift|untie|use|utime|values|vec|waitpid|wantarray|warn|while|write)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars - { input : /#(.*?)(
|<\/P>)/g, output : '#$1$2' } // comments -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/php.css b/wp-includes/js/codepress/languages/php.css deleted file mode 100644 index 23fca5c7f2..0000000000 --- a/wp-includes/js/codepress/languages/php.css +++ /dev/null @@ -1,12 +0,0 @@ -/* - * CodePress color styles for PHP syntax highlighting - */ - -b {color:#000080;} /* tags */ -big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u {color:gray;font-weight:normal;} /* comments */ -s, s b, strong s u, strong s cite {color:#5656fa;font-weight:normal;} /* attributes and strings */ -strong a, strong a u {color:#006700;font-weight:bold;} /* variables */ -em {color:#800080;font-style:normal;} /* style */ -ins {color:#800000;} /* script */ -strong u {color:#7F0055;font-weight:bold;} /* reserved words */ -cite, s cite {color:red;font-weight:bold;} /* */ diff --git a/wp-includes/js/codepress/languages/php.js b/wp-includes/js/codepress/languages/php.js deleted file mode 100644 index 1689fbae44..0000000000 --- a/wp-includes/js/codepress/languages/php.js +++ /dev/null @@ -1,61 +0,0 @@ -/* - * CodePress regular expressions for PHP syntax highlighting - */ - -// PHP -Language.syntax = [ - { input : /(<[^!\?]*?>)/g, output : '$1' }, // all tags - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, // style tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, // script tags - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, // strings single quote - { input : /(<\?)/g, output : '$1' }, // ' }, // .*?> - { input : /(<\?php|<\?=|<\?|\?>)/g, output : '$1' }, // php tags - { input : /(\$[\w\.]*)/g, output : '$1' }, // vars - { input : /\b(false|true|and|or|xor|__FILE__|exception|__LINE__|array|as|break|case|class|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|for|foreach|function|global|if|include|include_once|isset|list|new|print|require|require_once|return|static|switch|unset|use|while|__FUNCTION__|__CLASS__|__METHOD__|final|php_user_filter|interface|implements|extends|public|private|protected|abstract|clone|try|catch|throw|this)\b/g, output : '$1' }, // reserved words - { input : /([^:])\/\/(.*?)(//$2$3' }, // php comments // - { input : /([^:])#(.*?)(#$2$3' }, // php comments # - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' }, // php comments /* */ - { input : /(<!--.*?-->.)/g, output : '$1' } // html comments -] - -Language.snippets = [ - { input : 'if', output : 'if($0){\n\t\n}' }, - { input : 'ifelse', output : 'if($0){\n\t\n}\nelse{\n\t\n}' }, - { input : 'else', output : '}\nelse {\n\t' }, - { input : 'elseif', output : '}\nelseif($0) {\n\t' }, - { input : 'do', output : 'do{\n\t$0\n}\nwhile();' }, - { input : 'inc', output : 'include_once("$0");' }, - { input : 'fun', output : 'function $0(){\n\t\n}' }, - { input : 'func', output : 'function $0(){\n\t\n}' }, - { input : 'while', output : 'while($0){\n\t\n}' }, - { input : 'for', output : 'for($0,,){\n\t\n}' }, - { input : 'fore', output : 'foreach($0 as ){\n\t\n}' }, - { input : 'foreach', output : 'foreach($0 as ){\n\t\n}' }, - { input : 'echo', output : 'echo \'$0\';' }, - { input : 'switch', output : 'switch($0) {\n\tcase "": break;\n\tdefault: ;\n}' }, - { input : 'case', output : 'case "$0" : break;' }, - { input : 'ret0', output : 'return false;' }, - { input : 'retf', output : 'return false;' }, - { input : 'ret1', output : 'return true;' }, - { input : 'rett', output : 'return true;' }, - { input : 'ret', output : 'return $0;' }, - { input : 'def', output : 'define(\'$0\',\'\');' }, - { input : '' } -] - -Language.complete = [ - { input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [ - { input : '[space]', output : ' ' }, - { input : '[enter]', output : '
' } , - { input : '[j]', output : 'testing' }, - { input : '[7]', output : '&' } -] \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/ruby.css b/wp-includes/js/codepress/languages/ruby.css deleted file mode 100644 index edb9028dbb..0000000000 --- a/wp-includes/js/codepress/languages/ruby.css +++ /dev/null @@ -1,10 +0,0 @@ -/* - * CodePress color styles for Ruby syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -i, i b, i s, i em, i a, i u {color:gray;font-weight:normal;} /* comments */ -s, s b, s a, s em, s u {color:#2A00FF;font-weight:normal;} /* strings */ -a {color:#006700;font-weight:bold;} /* variables */ -em {color:darkblue;font-weight:bold;} /* functions */ -u {font-weight:bold;} /* special chars */ \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/ruby.js b/wp-includes/js/codepress/languages/ruby.js deleted file mode 100644 index 207f23b004..0000000000 --- a/wp-includes/js/codepress/languages/ruby.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * CodePress regular expressions for Perl syntax highlighting - */ - -// Ruby -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /([\$\@\%]+)([\w\.]*)/g, output : '$1$2' }, // vars - { input : /(def\s+)([\w\.]*)/g, output : '$1$2' }, // functions - { input : /\b(alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars - { input : /#(.*?)(
|<\/P>)/g, output : '#$1$2' } // comments -]; - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/sql.css b/wp-includes/js/codepress/languages/sql.css deleted file mode 100644 index 92c4b96dc7..0000000000 --- a/wp-includes/js/codepress/languages/sql.css +++ /dev/null @@ -1,10 +0,0 @@ -/* - * CodePress color styles for SQL syntax highlighting - * By Merlin Moncure - */ - -b {color:#0000FF;font-style:normal;font-weight:bold;} /* reserved words */ -u {color:#FF0000;font-style:normal;} /* types */ -a {color:#CD6600;font-style:normal;font-weight:bold;} /* commands */ -i, i b, i u, i a, i s {color:#A9A9A9;font-weight:normal;font-style:italic;} /* comments */ -s, s b, s u, s a, s i {color:#2A00FF;font-weight:normal;} /* strings */ diff --git a/wp-includes/js/codepress/languages/sql.js b/wp-includes/js/codepress/languages/sql.js deleted file mode 100644 index 1d4a21f82f..0000000000 --- a/wp-includes/js/codepress/languages/sql.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * CodePress regular expressions for SQL syntax highlighting - * By Merlin Moncure - */ - -// SQL -Language.syntax = [ - { input : /\'(.*?)(\')/g, output : '\'$1$2' }, // strings single quote - { input : /\b(add|after|aggregate|alias|all|and|as|authorization|between|by|cascade|cache|cache|called|case|check|column|comment|constraint|createdb|createuser|cycle|database|default|deferrable|deferred|diagnostics|distinct|domain|each|else|elseif|elsif|encrypted|except|exception|for|foreign|from|from|full|function|get|group|having|if|immediate|immutable|in|increment|initially|increment|index|inherits|inner|input|intersect|into|invoker|is|join|key|language|left|like|limit|local|loop|match|maxvalue|minvalue|natural|nextval|no|nocreatedb|nocreateuser|not|null|of|offset|oids|on|only|operator|or|order|outer|owner|partial|password|perform|plpgsql|primary|record|references|replace|restrict|return|returns|right|row|rule|schema|security|sequence|session|sql|stable|statistics|table|temp|temporary|then|time|to|transaction|trigger|type|unencrypted|union|unique|user|using|valid|value|values|view|volatile|when|where|with|without|zone)\b/gi, output : '$1' }, // reserved words - { input : /\b(bigint|bigserial|bit|boolean|box|bytea|char|character|cidr|circle|date|decimal|double|float4|float8|inet|int2|int4|int8|integer|interval|line|lseg|macaddr|money|numeric|oid|path|point|polygon|precision|real|refcursor|serial|serial4|serial8|smallint|text|timestamp|varbit|varchar)\b/gi, output : '$1' }, // types - { input : /\b(abort|alter|analyze|begin|checkpoint|close|cluster|comment|commit|copy|create|deallocate|declare|delete|drop|end|execute|explain|fetch|grant|insert|listen|load|lock|move|notify|prepare|reindex|reset|restart|revoke|rollback|select|set|show|start|truncate|unlisten|update)\b/gi, output : '$1' }, // commands - { input : /([^:]|^)\-\-(.*?)(--$2$3' } // comments // -] - -Language.snippets = [ - { input : 'select', output : 'select $0 from where ' } -] - -Language.complete = [ - { input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] - - - diff --git a/wp-includes/js/codepress/languages/text.css b/wp-includes/js/codepress/languages/text.css deleted file mode 100644 index 474fe60c09..0000000000 --- a/wp-includes/js/codepress/languages/text.css +++ /dev/null @@ -1,5 +0,0 @@ -/* - * CodePress color styles for Text syntax highlighting - */ - -/* do nothing as expected */ diff --git a/wp-includes/js/codepress/languages/text.js b/wp-includes/js/codepress/languages/text.js deleted file mode 100644 index 6534aafa58..0000000000 --- a/wp-includes/js/codepress/languages/text.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - * CodePress regular expressions for Text syntax highlighting - */ - -// plain text -Language.syntax = [] -Language.snippets = [] -Language.complete = [] -Language.shortcuts = [] diff --git a/wp-includes/js/codepress/languages/vbscript.css b/wp-includes/js/codepress/languages/vbscript.css deleted file mode 100644 index e1465e90fe..0000000000 --- a/wp-includes/js/codepress/languages/vbscript.css +++ /dev/null @@ -1,71 +0,0 @@ -/* - * CodePress color styles for ASP-VB syntax highlighting - * By Martin D. Kirk - */ - -/* tags */ -b { - color:#000080; -} -/* comments */ -big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u { - color:gray; - font-weight:normal; -} -/* ASP comments */ -strong dfn, strong dfn a,strong dfn var, strong dfn a u, strong dfn u{ - color:gray; - font-weight:normal; -} - /* attributes */ -s, s b, span s u, span s cite, strong span s { - color:#5656fa ; - font-weight:normal; -} - /* strings */ -strong s,strong s b, strong s u, strong s cite { - color:#009900; - font-weight:normal; -} -strong ins{ - color:#000000; - font-weight:bold; -} - /* Syntax */ -strong a, strong a u { - color:#0000FF; - font-weight:; -} - /* Native Keywords */ -strong u { - color:#990099; - font-weight:bold; -} -/* Numbers */ -strong var{ - color:#FF0000; -} -/* ASP Language */ -span{ - color:#990000; - font-weight:bold; -} -strong i,strong a i, strong u i { - color:#009999; -} -/* style */ -em { - color:#800080; - font-style:normal; -} - /* script */ -ins { - color:#800000; - font-weight:bold; -} - -/* */ -cite, s cite { - color:red; - font-weight:bold; -} \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/vbscript.js b/wp-includes/js/codepress/languages/vbscript.js deleted file mode 100644 index 21e78dd887..0000000000 --- a/wp-includes/js/codepress/languages/vbscript.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - * CodePress regular expressions for ASP-vbscript syntax highlighting - */ - -// ASP VBScript -Language.syntax = [ -// all tags - { input : /(<[^!%|!%@]*?>)/g, output : '$1' }, -// style tags - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, -// script tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, -// strings "" and attributes - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, -// ASP Comment - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, -// <%.* - { input : /(<%)/g, output : '$1' }, -// .*%> - { input : /(%>)/g, output : '$1' }, -// <%@...%> - { input : /(<%@)(.+?)(%>)/gi, output : '$1$2$3' }, -//Numbers - { input : /\b([\d]+)\b/g, output : '$1' }, -// Reserved Words 1 (Blue) - { input : /\b(And|As|ByRef|ByVal|Call|Case|Class|Const|Dim|Do|Each|Else|ElseIf|Empty|End|Eqv|Exit|False|For|Function)\b/gi, output : '$1' }, - { input : /\b(Get|GoTo|If|Imp|In|Is|Let|Loop|Me|Mod|Enum|New|Next|Not|Nothing|Null|On|Option|Or|Private|Public|ReDim|Rem)\b/gi, output : '$1' }, - { input : /\b(Resume|Select|Set|Stop|Sub|Then|To|True|Until|Wend|While|With|Xor|Execute|Randomize|Erase|ExecuteGlobal|Explicit|step)\b/gi, output : '$1' }, -// Reserved Words 2 (Purple) - { input : /\b(Abandon|Abs|AbsolutePage|AbsolutePosition|ActiveCommand|ActiveConnection|ActualSize|AddHeader|AddNew|AppendChunk)\b/gi, output : '$1' }, - { input : /\b(AppendToLog|Application|Array|Asc|Atn|Attributes|BeginTrans|BinaryRead|BinaryWrite|BOF|Bookmark|Boolean|Buffer|Byte)\b/gi, output : '$1' }, - { input : /\b(CacheControl|CacheSize|Cancel|CancelBatch|CancelUpdate|CBool|CByte|CCur|CDate|CDbl|Charset|Chr|CInt|Clear)\b/gi, output : '$1' }, - { input : /\b(ClientCertificate|CLng|Clone|Close|CodePage|CommandText|CommandType|CommandTimeout|CommitTrans|CompareBookmarks|ConnectionString|ConnectionTimeout)\b/gi, output : '$1' }, - { input : /\b(Contents|ContentType|Cookies|Cos|CreateObject|CreateParameter|CSng|CStr|CursorLocation|CursorType|DataMember|DataSource|Date|DateAdd|DateDiff)\b/gi, output : '$1' }, - { input : /\b(DatePart|DateSerial|DateValue|Day|DefaultDatabase|DefinedSize|Delete|Description|Double|EditMode|Eof|EOF|err|Error)\b/gi, output : '$1' }, - { input : /\b(Exp|Expires|ExpiresAbsolute|Filter|Find|Fix|Flush|Form|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent)\b/gi, output : '$1' }, - { input : /\b(GetChunk|GetLastError|GetRows|GetString|Global|HelpContext|HelpFile|Hex|Hour|HTMLEncode|IgnoreCase|Index|InStr|InStrRev)\b/gi, output : '$1' }, - { input : /\b(Int|Integer|IsArray|IsClientConnected|IsDate|IsolationLevel|Join|LBound|LCase|LCID|Left|Len|Lock|LockType|Log|Long|LTrim)\b/gi, output : '$1' }, - { input : /\b(MapPath|MarshalOptions|MaxRecords|Mid|Minute|Mode|Month|MonthName|Move|MoveFirst|MoveLast|MoveNext|MovePrevious|Name|NextRecordset)\b/gi, output : '$1' }, - { input : /\b(Now|Number|NumericScale|ObjectContext|Oct|Open|OpenSchema|OriginalValue|PageCount|PageSize|Pattern|PICS|Precision|Prepared|Property)\b/gi, output : '$1' }, - { input : /\b(Provider|QueryString|RecordCount|Redirect|RegExp|Remove|RemoveAll|Replace|Requery|Request|Response|Resync|Right|Rnd)\b/gi, output : '$1' }, - { input : /\b(RollbackTrans|RTrim|Save|ScriptTimeout|Second|Seek|Server|ServerVariables|Session|SessionID|SetAbort|SetComplete|Sgn)\b/gi, output : '$1' }, - { input : /\b(Sin|Size|Sort|Source|Space|Split|Sqr|State|StaticObjects|Status|StayInSync|StrComp|String|StrReverse|Supports|Tan|Time)\b/gi, output : '$1' }, - { input : /\b(Timeout|Timer|TimeSerial|TimeValue|TotalBytes|Transfer|Trim|Type|Type|UBound|UCase|UnderlyingValue|UnLock|Update|UpdateBatch)\b/gi, output : '$1' }, - { input : /\b(URLEncode|Value|Value|Version|Weekday|WeekdayName|Write|Year)\b/gi, output : '$1' }, -// Reserved Words 3 (Turquis) - { input : /\b(vbBlack|vbRed|vbGreen|vbYellow|vbBlue|vbMagenta|vbCyan|vbWhite|vbBinaryCompare|vbTextCompare)\b/gi, output : '$1' }, - { input : /\b(vbSunday|vbMonday|vbTuesday|vbWednesday|vbThursday|vbFriday|vbSaturday|vbUseSystemDayOfWeek)\b/gi, output : '$1' }, - { input : /\b(vbFirstJan1|vbFirstFourDays|vbFirstFullWeek|vbGeneralDate|vbLongDate|vbShortDate|vbLongTime|vbShortTime)\b/gi, output : '$1' }, - { input : /\b(vbObjectError|vbCr|VbCrLf|vbFormFeed|vbLf|vbNewLine|vbNullChar|vbNullString|vbTab|vbVerticalTab|vbUseDefault|vbTrue)\b/gi, output : '$1' }, - { input : /\b(vbFalse|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant)\b/gi, output : '$1' }, - { input : /\b(vbDataObject|vbDecimal|vbByte|vbArray)\b/gi, output : '$1' }, -// html comments - { input : /(<!--.*?-->.)/g, output : '$1' } -] - -Language.Functions = [ - // Output at index 0, must be the desired tagname surrounding a $1 - // Name is the index from the regex that marks the functionname - {input : /(function|sub)([ ]*?)(\w+)([ ]*?\()/gi , output : '$1', name : '$3'} -] - -Language.snippets = [ -//Conditional - { input : 'if', output : 'If $0 Then\n\t\nEnd If' }, - { input : 'ifelse', output : 'If $0 Then\n\t\n\nElse\n\t\nEnd If' }, - { input : 'case', output : 'Select Case $0\n\tCase ?\n\tCase Else\nEnd Select'}, -//Response - { input : 'rw', output : 'Response.Write( $0 )' }, - { input : 'resc', output : 'Response.Cookies( $0 )' }, - { input : 'resb', output : 'Response.Buffer'}, - { input : 'resflu', output : 'Response.Flush()'}, - { input : 'resend', output : 'Response.End'}, -//Request - { input : 'reqc', output : 'Request.Cookies( $0 )' }, - { input : 'rq', output : 'Request.Querystring("$0")' }, - { input : 'rf', output : 'Request.Form("$0")' }, -//FSO - { input : 'fso', output : 'Set fso = Server.CreateObject("Scripting.FileSystemObject")\n$0' }, - { input : 'setfo', output : 'Set fo = fso.getFolder($0)' }, - { input : 'setfi', output : 'Set fi = fso.getFile($0)' }, - { input : 'twr', output : 'Set f = fso.CreateTextFile($0,true)\'overwrite\nf.WriteLine()\nf.Close'}, - { input : 'tre', output : 'Set f = fso.OpenTextFile($0, 1)\nf.ReadAll\nf.Close'}, -//Server - { input : 'mapp', output : 'Server.Mappath($0)' }, -//Loops - { input : 'foreach', output : 'For Each $0 in ?\n\t\nNext' }, - { input : 'for', output : 'For $0 to ? step ?\n\t\nNext' }, - { input : 'do', output : 'Do While($0)\n\t\nLoop' }, - { input : 'untilrs', output : 'do until rs.eof\n\t\nrs.movenext\nloop' }, -//ADO - { input : 'adorec', output : 'Set rs = Server.CreateObject("ADODB.Recordset")' }, - { input : 'adocon', output : 'Set Conn = Server.CreateObject("ADODB.Connection")' }, - { input : 'adostr', output : 'Set oStr = Server.CreateObject("ADODB.Stream")' }, -//Http Request - { input : 'xmlhttp', output : 'Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")\nxmlHttp.open("GET", $0, false)\nxmlHttp.send()\n?=xmlHttp.responseText' }, - { input : 'xmldoc', output : 'Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")\nxmldoc.async=false\nxmldoc.load(request)'}, -//Functions - { input : 'func', output : 'Function $0()\n\t\n\nEnd Function'}, - { input : 'sub', output : 'Sub $0()\n\t\nEnd Sub'} - -] - -Language.complete = [ - //{ input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [ - { input : '[space]', output : ' ' }, - { input : '[enter]', output : '
' } , - { input : '[j]', output : 'testing' }, - { input : '[7]', output : '&' } -] \ No newline at end of file diff --git a/wp-includes/js/codepress/languages/xsl.css b/wp-includes/js/codepress/languages/xsl.css deleted file mode 100644 index 385eaaba1f..0000000000 --- a/wp-includes/js/codepress/languages/xsl.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * CodePress color styles for HTML syntax highlighting - * By RJ Bruneel - */ - -b {color:#000080;} /* tags */ -ins, ins b, ins s, ins em {color:gray;} /* comments */ -s, s b {color:#7777e4;} /* attribute values */ -a {color:#E67300;} /* links */ -u {color:#CC66CC;} /* forms */ -big {color:#db0000;} /* images */ -em, em b {color:#800080;} /* style */ -strong {color:#800000;} /* script */ -tt i {color:darkblue;font-weight:bold;} /* script reserved words */ -xsl {color:green;} /* xsl */ diff --git a/wp-includes/js/codepress/languages/xsl.js b/wp-includes/js/codepress/languages/xsl.js deleted file mode 100644 index e93932a632..0000000000 --- a/wp-includes/js/codepress/languages/xsl.js +++ /dev/null @@ -1,103 +0,0 @@ -/* - * CodePress regular expressions for XSL syntax highlighting - * By RJ Bruneel - */ - -Language.syntax = [ // XSL - { - input : /(<[^!]*?>)/g, - output : '$1' // all tags - },{ - input : /(<a.*?>|<\/a>)/g, - output : '$1' // links - },{ - input : /(<img .*?>)/g, - output : '$1' // images - },{ - input : /(<\/?(button|textarea|form|input|select|option|label).*?>)/g, - output : '$1' // forms - },{ - input : /(<style.*?>)(.*?)(<\/style>)/g, - output : '$1$2$3' // style tags - },{ - input : /(<script.*?>)(.*?)(<\/script>)/g, - output : '$1$2$3' // script tags - },{ - input : /(<xsl.*?>|<\/xsl.*?>)/g, - output : '$1' // xsl - },{ - input : /=(".*?")/g, - output : '=$1' // atributes double quote - },{ - input : /=('.*?')/g, - output : '=$1' // atributes single quote - },{ - input : /(<!--.*?-->.)/g, - output : '$1' // comments - },{ - input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, - output : '$1' // script reserved words - } -]; - -Language.snippets = [ - {input : 'aref', output : '' }, - {input : 'h1', output : '

$0

' }, - {input : 'h2', output : '

$0

' }, - {input : 'h3', output : '

$0

' }, - {input : 'h4', output : '

$0

' }, - {input : 'h5', output : '
$0
' }, - {input : 'h6', output : '
$0
' }, - {input : 'html', output : '\n\t$0\n' }, - {input : 'head', output : '\n\t\n\t$0\n\t\n' }, - {input : 'img', output : '' }, - {input : 'input', output : '' }, - {input : 'label', output : '' }, - {input : 'legend', output : '\n\t$0\n' }, - {input : 'link', output : '' }, - {input : 'base', output : '' }, - {input : 'body', output : '\n\t$0\n' }, - {input : 'css', output : '' }, - {input : 'div', output : '
\n\t$0\n
' }, - {input : 'divid', output : '
\n\t\n
' }, - {input : 'dl', output : '
\n\t
\n\t\t$0\n\t
\n\t
\n
' }, - {input : 'fieldset', output : '
\n\t$0\n
' }, - {input : 'form', output : '
\n\t\n
' }, - {input : 'meta', output : '' }, - {input : 'p', output : '

$0

' }, - {input : 'b', output : '$0' }, - {input : 'li', output : '
  • $0
  • ' }, - {input : 'ul', output : '
      $0
    ' }, - {input : 'ol', output : '
      $0
    ' }, - {input : 'strong', output : '$0' }, - {input : 'br', output : '
    ' }, - {input : 'script', output : '' }, - {input : 'scriptsrc', output : '' }, - {input : 'span', output : '$0' }, - {input : 'table', output : '\n\t\n\t\n
    ' }, - {input : 'style', output : '' }, - {input : 'xsl:stylesheet', output : '' }, - {input : 'xsl:template', output : '$0' }, - {input : 'xsl:for-each', output : '' }, - {input : 'xsl:choose', output : '$0<\xsl:choose>' }, - {input : 'xsl:param', output : '' }, - {input : 'xsl:variable', output : '' }, - {input : 'xsl:if', output : '' }, - {input : 'xsl:when', output : '' }, - {input : 'xsl:otherwise', output : '$0' }, - {input : 'xsl:attribute', output : '' }, - {input : 'xsl:value-of', output : '' }, - {input : 'xsl:with-param', output : '' }, - {input : 'xsl:call-template', output : '' } - -]; - -Language.complete = [ // Auto complete only for 1 character - {input : '\'',output : '\'$0\'' }, - {input : '"', output : '"$0"' }, - {input : '(', output : '\($0\)' }, - {input : '[', output : '\[$0\]' }, - {input : '{', output : '{\n\t$0\n}' } -]; - -Language.shortcuts = []; \ No newline at end of file diff --git a/wp-includes/js/codepress/license.txt b/wp-includes/js/codepress/license.txt deleted file mode 100644 index e80ac68d8f..0000000000 --- a/wp-includes/js/codepress/license.txt +++ /dev/null @@ -1,458 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS