📄 editor.htm
字号:
<iframe name=inwin id=inwin src='' width=0px height=0px style="display:none"></iframe>
<form action='do.php?action=savefile&path={path}' method=post name=editform>
<table border=0 cellspacing=0 cellpadding=0 width=100% style="layout:fixed;">
<tr>
<td width=100% colspan=9 height=23 background=images/titleback.gif>
<a href='javascript:window.close()'>关闭</a>
<a href='javascript:repon();'>字符替换</a>
<font style='font-size:10pt;'>查找请按Ctrl+F</font>
<a href="jump.php?url={path}" target=_blank>预览文件</a>
<a href="javascript:runme();">本地预览</a>
<input type=checkbox onclick="breakline(this.checked);" name=autobreak>自动换行
</td>
</tr>
<tr>
<td>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td>
<textarea id='txt_ln' style='overflow:hidden;border:2px;border-right:0px;border-style:inset;padding-right:5px;text-align:right;scrolling:no;height:450px;font-family:宋体,verdana;font-size:9pt;background-color:#eeeeee;width:35px;' readonly>{lines}</textarea>
</td>
<td width=100%>
<textarea id='txt_main' name='content' onkeydown='editTab()' onscroll='show_ln()' style='word-wrap:normal;word-break: break-all;padding:2px;height:450px;border:2px;border-style:inset;overflow:auto;scrolling:yes;border-left:0px;font-family:宋体,verdana;font-size:9pt;width:100%;'>{content}</textarea>
</td>
</tr>
</table>
<div>
文件名:<input type=text size=20 name=filename value='{filename}'>(可以修改)
文件大小:2.06 KB
<input type=checkbox onclick="document.editform.target=(this.checked)?'_self':'inwin';" checked>保存后关闭窗口 <input type=submit value=保存> <input type=reset value=还原 ><br>
<!---字符串替换--->
<div style='display:none;background-color:lightblue;padding:10px;' id='replacediv'>
<textarea name="repLeft" id="repLeft" rows=3 cols=20></textarea>(与<textarea name="repRight" id="repRight" rows=3 cols=20></textarea>间的内容)替换为:<textarea name="repMid" id="repMid" rows=3 cols=20></textarea><br>
(<input type="checkbox" name="isRemove" id="isRemove" value="y" checked>删除定界符)<input type="button" name="Submit322" value="开始替换" onClick="str_replace();"> <input type="button" name="Submit3222" value="撤销替换" onClick="str_undo();"> <a href="javascript:repon()">关闭</a>
</div>
</div>
</form>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -