3 <title>CodeMirror: Shell mode
</title>
4 <meta charset=
"utf-8"/>
5 <link rel=stylesheet
href=
"../../doc/docs.css">
7 <link rel=stylesheet href=../../lib/codemirror.css
>
8 <script src=../../lib/codemirror.js
></script>
9 <script src=
"../../addon/edit/matchbrackets.js"></script>
10 <script src=shell.js
></script>
12 .CodeMirror {border-top:
1px solid black; border-bottom:
1px solid black;}
15 <a href=
"http://codemirror.net"><img id=logo
src=
"../../doc/logo.png"></a>
18 <li><a href=
"../../index.html">Home
</a>
19 <li><a href=
"../../doc/manual.html">Manual
</a>
20 <li><a href=
"https://github.com/marijnh/codemirror">Code
</a>
23 <li><a href=
"../index.html">Language modes
</a>
24 <li><a class=active
href=
"#">Shell
</a>
35 # clone the repository
36 git clone http://github.com/garden/tree
38 # generate HTTPS credentials
40 openssl genrsa -aes256 -out https.key
1024
41 openssl req -new -nodes -key https.key -out https.csr
42 openssl x509 -req -days
365 -in https.csr -signkey https.key -out https.crt
44 openssl rsa -in https.key.orig -out https.key
46 # start the server in HTTPS mode
48 sudo node ../server.js
443 'yes'
>> ../node.log
&
50 # here is how to stop the server
51 for pid in `ps aux | grep 'node ../server.js' | awk '{print $
2}'` ; do
52 sudo kill -
9 $pid
2> /dev/null
58 var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
65 <p><strong>MIME types defined:
</strong> <code>text/x-sh
</code>.
</p>