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 @@ - - -
-"; - 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(/
'),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,'\n'); - o = o.replace(/<\/P>/g,'\r'); - o = o.replace(/<.*?>/g,''); - o = o.replace(/ /g,''); - o = '
'; - o = o.replace(/\n\r/g,''); - o = o.replace(/\n/g,''+o+'
'); - o = o.replace(/\r/g,'<\/P>'); - o = o.replace(/
(
)+/,'
'); - o = o.replace(/<\/P>(<\/P>)+/,'
'); - o = o.replace(/<\/P>/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 /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 = ' $0 $0'+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.
/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
');
- 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
|<\/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\n\t
' },
- { input : 'fieldset', output : '' },
- { input : 'form', output : '' },
- { input : 'meta', output : '' },
- { input : 'p', output : '\n\t
' },
- { 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 : /\"(.*?)(\"| \n\t \n
|<\/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 : /(\?>)/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 : '', output : 'php\n$0\n?>' }
-]
-
-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' // 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\n\t
' },
- {input : 'fieldset', output : '' },
- {input : 'form', output : '' },
- {input : 'meta', output : '' },
- {input : 'p', 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
' },
- {input : 'style', output : '' },
- {input : 'xsl:stylesheet', output : ' \n\t \n