source: spip-zone/_plugins_/skeleditor/trunk/codemirror/demo/closetag.html @ 111862

Last change on this file since 111862 was 111862, checked in by arnaud.berard@…, 14 months ago

avec svn add c'est mieux

  • addons
  • demo
  • mode

-theme

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
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="https://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>
Note: See TracBrowser for help on using the repository browser.