3 <title>CodeMirror: Shell mode</title>
5 <link rel=stylesheet href=../../lib/codemirror.css>
6 <link rel=stylesheet href=../../doc/docs.css>
9 .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
12 <script src=../../lib/codemirror.js></script>
13 <script src="../../addon/edit/matchbrackets.js"></script>
14 <script src=shell.js></script>
16 <h1>CodeMirror: Shell mode</h1>
21 # clone the repository
22 git clone http://github.com/garden/tree
24 # generate HTTPS credentials
26 openssl genrsa -aes256 -out https.key 1024
27 openssl req -new -nodes -key https.key -out https.csr
28 openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
30 openssl rsa -in https.key.orig -out https.key
32 # start the server in HTTPS mode
34 sudo node ../server.js 443 'yes' >> ../node.log &
36 # here is how to stop the server
37 for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
38 sudo kill -9 $pid 2> /dev/null
44 var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
51 <p><strong>MIME types defined:</strong> <code>text/x-sh</code>.</p>