Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/shell
File: index.html
<!doctype html>
[0] Fix | Delete
[1] Fix | Delete
<title>CodeMirror: Shell mode</title>
[2] Fix | Delete
<meta charset="utf-8"/>
[3] Fix | Delete
<link rel=stylesheet href="../../doc/docs.css">
[4] Fix | Delete
[5] Fix | Delete
<link rel=stylesheet href=../../lib/codemirror.css>
[6] Fix | Delete
<script src=../../lib/codemirror.js></script>
[7] Fix | Delete
<script src="../../addon/edit/matchbrackets.js"></script>
[8] Fix | Delete
<script src=shell.js></script>
[9] Fix | Delete
<style type=text/css>
[10] Fix | Delete
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
[11] Fix | Delete
</style>
[12] Fix | Delete
<div id=nav>
[13] Fix | Delete
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
[14] Fix | Delete
[15] Fix | Delete
<ul>
[16] Fix | Delete
<li><a href="../../index.html">Home</a>
[17] Fix | Delete
<li><a href="../../doc/manual.html">Manual</a>
[18] Fix | Delete
<li><a href="https://github.com/codemirror/codemirror">Code</a>
[19] Fix | Delete
</ul>
[20] Fix | Delete
<ul>
[21] Fix | Delete
<li><a href="../index.html">Language modes</a>
[22] Fix | Delete
<li><a class=active href="#">Shell</a>
[23] Fix | Delete
</ul>
[24] Fix | Delete
</div>
[25] Fix | Delete
[26] Fix | Delete
<article>
[27] Fix | Delete
<h2>Shell mode</h2>
[28] Fix | Delete
[29] Fix | Delete
[30] Fix | Delete
<textarea id=code>
[31] Fix | Delete
#!/bin/bash
[32] Fix | Delete
[33] Fix | Delete
# clone the repository
[34] Fix | Delete
git clone http://github.com/garden/tree
[35] Fix | Delete
[36] Fix | Delete
# generate HTTPS credentials
[37] Fix | Delete
cd tree
[38] Fix | Delete
openssl genrsa -aes256 -out https.key 1024
[39] Fix | Delete
openssl req -new -nodes -key https.key -out https.csr
[40] Fix | Delete
openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
[41] Fix | Delete
cp https.key{,.orig}
[42] Fix | Delete
openssl rsa -in https.key.orig -out https.key
[43] Fix | Delete
[44] Fix | Delete
# start the server in HTTPS mode
[45] Fix | Delete
cd web
[46] Fix | Delete
sudo node ../server.js 443 'yes' &gt;&gt; ../node.log &amp;
[47] Fix | Delete
[48] Fix | Delete
# here is how to stop the server
[49] Fix | Delete
for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
[50] Fix | Delete
sudo kill -9 $pid 2&gt; /dev/null
[51] Fix | Delete
done
[52] Fix | Delete
[53] Fix | Delete
exit 0</textarea>
[54] Fix | Delete
[55] Fix | Delete
<script>
[56] Fix | Delete
var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
[57] Fix | Delete
mode: 'shell',
[58] Fix | Delete
lineNumbers: true,
[59] Fix | Delete
matchBrackets: true
[60] Fix | Delete
});
[61] Fix | Delete
</script>
[62] Fix | Delete
[63] Fix | Delete
<p><strong>MIME types defined:</strong> <code>text/x-sh</code>.</p>
[64] Fix | Delete
</article>
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function