在chrome(我用的360极速浏览器)浏览器里直接复制代码到浏览器:粘贴就可以用了,
当然也可以保存到自己的收藏夹里(前提是有网)
之前写的原文
快捷键:Ctrl+F
搜索 Alt+F
格式化 Ctrl+Shift+空格
显示提示 Ctrl+鼠标左键可以多选 Alt+点击鼠标左键后移动(可选择多行 )
Ctrl+S下载代码
Ctrl+R预览
支持emmet
....
保存下面代码到收藏夹
data:text/html;charset=utf-8,<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>HTML编辑器</title> <style type='text/css'> #e { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } </style> </head> <body> <div id='e'></div> <script src='https://cdn.bootcss.com/ace/1.2.6/ace.js' type='text/javascript' charset='utf-8'></script> <script src='https://cdn.bootcss.com/ace/1.2.6/ext-language_tools.js'></script> <script src='https://cloud9ide.github.io/emmet-core/emmet.js' type='text/javascript' charset='utf-8'></script> <script src='https://cdn.bootcss.com/ace/1.2.6/ext-emmet.js' type='text/javascript' charset='utf-8'></script> <script> var e = ace.edit('e'); e.setTheme('ace/theme/monokai'); e.getSession().setMode('ace/mode/html'); e.setOption('enableEmmet', true); ace.require('ace/ext/language_tools'); e.setOption('enableLiveAutocompletion', true); e.setOptions({ enableBasicAutocompletion: true }); e.getSession().setUseWrapMode(true); function SaveTextArea() { var t = new Blob([e.getValue()], { type: "text/html;charset=UTF-8", encoding: "UTF-8" }), n = document.createElement("a"); n.href = URL.createObjectURL(t), n.download = "%E4%BF%9D%E5%AD%98.html", n.click(); }; function do_js_beautify() { js_source = (e.getValue()).replace(/^\s+/, ''); tabsize = 1; tabchar = '\t'; if(js_source && js_source.charAt(0) === '<') { e.setValue(style_html(js_source, tabsize, tabchar, 80)); } else { e.setValue(js_beautify(js_source, tabsize, tabchar)); }; return false; }; document.onkeydown = function(e) { if(e.ctrlKey == true && e.keyCode == 83) { SaveTextArea(); return false; }; if(e.altKey == true && e.keyCode == 70) { do_js_beautify(); return false; }; if(e.ctrlKey == true && e.keyCode == 82) { runEx(); return false; }; if(e.altKey == true && e.keyCode == 82) { runEx(); return false; }; }; var r; function runEx() { r=new Blob([e.getValue()], { type: "text/html;charset=UTF-8", encoding: "UTF-8" }), window.open(URL.createObjectURL(r)); }; </script> <script src='http://tool.chinaz.com/template/default/js/jsformat.js'></script> <script src='http://tool.chinaz.com/template/default/js/htmlformat.js'></script> </body> </html>
[点击弹出HTML编辑器](data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sPgoKCTxoZWFkPgoJCTxtZXRhIGNoYXJzZXQ9IlVURi04Ij4KCQk8dGl0bGU+REVNTzwvdGl0bGU+CgkJPHN0eWxlIHR5cGU9J3RleHQvY3NzJz4KCQkJI2UgewoJCQkJcG9zaXRpb246IGFic29sdXRlOwoJCQkJdG9wOiAwOwoJCQkJcmlnaHQ6IDA7CgkJCQlib3R0b206IDA7CgkJCQlsZWZ0OiAwOwoJCQl9CgkJPC9zdHlsZT4KCTwvaGVhZD4KCgk8Ym9keT4KCQk8ZGl2IGlkPSdlJz48L2Rpdj4KCQk8c2NyaXB0IHNyYz0naHR0cHM6Ly9jZG4uYm9vdGNzcy5jb20vYWNlLzEuMi42L2FjZS5qcycgdHlwZT0ndGV4dC9qYXZhc2NyaXB0JyBjaGFyc2V0PSd1dGYtOCc+PC9zY3JpcHQ+CgkJPHNjcmlwdCBzcmM9J2h0dHBzOi8vY2RuLmJvb3Rjc3MuY29tL2FjZS8xLjIuNi9leHQtbGFuZ3VhZ2VfdG9vbHMuanMnPjwvc2NyaXB0PgoJCTxzY3JpcHQgc3JjPSdodHRwczovL2Nsb3VkOWlkZS5naXRodWIuaW8vZW1tZXQtY29yZS9lbW1ldC5qcycgdHlwZT0ndGV4dC9qYXZhc2NyaXB0JyBjaGFyc2V0PSd1dGYtOCc+PC9zY3JpcHQ+CgkJPHNjcmlwdCBzcmM9J2h0dHBzOi8vY2RuLmJvb3Rjc3MuY29tL2FjZS8xLjIuNi9leHQtZW1tZXQuanMnIHR5cGU9J3RleHQvamF2YXNj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