You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
3.0 KiB
42 lines
3.0 KiB
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>[[SyntaxHighlighter]]</title>
|
|
|
|
<meta name="content-type" content="text/html ;charset=Unicode" />
|
|
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" />
|
|
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)" />
|
|
<link href='Load.ashx?type=themecss&file=dialog.css&theme=[[_Theme_]]' type="text/css" rel="stylesheet" />
|
|
<!--[if IE]>
|
|
<link href="Load.ashx?type=style&file=IE.css" type="text/css" rel="stylesheet" />
|
|
<![endif]-->
|
|
<script type="text/javascript" src="Load.ashx?type=dialogscript&verfix=1006&file=DialogHead.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="ajaxdiv">
|
|
<table>
|
|
<tr>
|
|
<td width="80">[[CodeLanguage]]:</td>
|
|
<td><select id="sel_lang"></select></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"><textarea id="ta_code" name="ta_code_name" style="width:400px;height:300px"></textarea></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div id="container-bottom">
|
|
<input type="button" value="[[OK]]" class="formbutton" onclick="DoHighlight()">
|
|
<input type="button" value="[[Cancel]]" class="formbutton" onclick="Close()">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script type="text/javascript" src="Load.ashx?type=dialogscript&verfix=1006&file=DialogFoot.js"></script>
|
|
<script type="text/javascript" src="Load.ashx?type=scripts&file=SyntaxHighlighter"></script>
|
|
<script>
|
|
|
|
|
|
var OxOd252=["=","; path=/;"," expires=",";","cookie","length","","sel_lang","ta_code","Brushes","sh","Aliases","options","CESHBRUSH","value","language",":nocontrols","opera","all","innerHTML","display","style","previousSibling","\x3Cdiv class=\x22dp-highlighter\x22\x3E","\x3C/div\x3E","parentNode"];function SetCookie(name,Ox4f,Ox56){var Ox57=name+OxOd252[0]+escape(Ox4f)+OxOd252[1];if(Ox56){var Ox58= new Date();Ox58.setSeconds(Ox58.getSeconds()+Ox56);Ox57+=OxOd252[2]+Ox58.toUTCString()+OxOd252[3];} ;document[OxOd252[4]]=Ox57;} ;function GetCookie(name){var Ox5a=document[OxOd252[4]].split(OxOd252[3]);for(var i=0;i<Ox5a[OxOd252[5]];i++){var Ox5b=Ox5a[i].split(OxOd252[0]);if(name==Ox5b[0].replace(/\s/g,OxOd252[6])){return unescape(Ox5b[1]);} ;} ;} ;var editor=Window_GetDialogArguments(window);var sel_lang=document.getElementById(OxOd252[7]);var ta_code=document.getElementById(OxOd252[8]);for(var brush in dp[OxOd252[10]][OxOd252[9]]){var aliases=dp[OxOd252[10]][OxOd252[9]][brush][OxOd252[11]];if(aliases==null){continue ;} ;sel_lang[OxOd252[12]].add( new Option(aliases,brush));var b=GetCookie(OxOd252[13]);if(b){sel_lang[OxOd252[14]]=b;} ;} ;function DoHighlight(){SetCookie(OxOd252[13],sel_lang.value,3600*24*30);var b=dp[OxOd252[10]][OxOd252[9]][sel_lang[OxOd252[14]]];ta_code[OxOd252[15]]=b[OxOd252[11]][0]+OxOd252[16];if(window[OxOd252[17]]||!document[OxOd252[18]]){ta_code[OxOd252[19]]=ta_code[OxOd252[14]];} ;dp[OxOd252[10]].HighlightAll(ta_code.name);ta_code[OxOd252[21]][OxOd252[20]]=OxOd252[6];var Ox61=ta_code[OxOd252[22]];editor.PasteHTML(OxOd252[23]+Ox61[OxOd252[19]]+OxOd252[24]);Ox61[OxOd252[25]].removeChild(Ox61);Close();} ;
|
|
|
|
|
|
|
|
</script>
|
|
</html> |