openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

closetag.html (1293B)


      1 <!doctype html>
      2 
      3 <title>CodeMirror: Close-Tag Demo</title>
      4 <meta charset="utf-8"/>
      5 <link rel=stylesheet href="../doc/docs.css">
      6 
      7 <link rel="stylesheet" href="../lib/codemirror.css">
      8 <script src="../lib/codemirror.js"></script>
      9 <script src="../addon/edit/closetag.js"></script>
     10 <script src="../addon/fold/xml-fold.js"></script>
     11 <script src="../mode/xml/xml.js"></script>
     12 <script src="../mode/javascript/javascript.js"></script>
     13 <script src="../mode/css/css.js"></script>
     14 <script src="../mode/htmlmixed/htmlmixed.js"></script>
     15 <style type="text/css">
     16       .CodeMirror {border-top: 1px solid #888; border-bottom: 1px solid #888;}
     17     </style>
     18 <div id=nav>
     19   <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../doc/logo.png"></a>
     20 
     21   <ul>
     22     <li><a href="../index.html">Home</a>
     23     <li><a href="../doc/manual.html">Manual</a>
     24     <li><a href="https://github.com/codemirror/codemirror">Code</a>
     25   </ul>
     26   <ul>
     27     <li><a class=active href="#">Close-Tag</a>
     28   </ul>
     29 </div>
     30 
     31 <article>
     32 <h2>Close-Tag Demo</h2>
     33 <form><textarea id="code" name="code"><html</textarea></form>
     34 
     35     <script type="text/javascript">
     36       var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
     37         mode: 'text/html',
     38         autoCloseTags: true
     39       });
     40     </script>
     41   </article>