1
<html xmlns="http://www.w3.org/1999/xhtml">
3
<script src="js/codemirror.js" type="text/javascript"></script>
4
<title>CodeMirror: HTML/XML demonstration</title>
5
<link rel="stylesheet" type="text/css" href="css/docs.css"/>
6
<style type="text/css">
7
.CodeMirror-line-numbers {
10
background-color: #eee;
14
font-family: monospace;
19
<body style="padding: 20px;">
21
<p>This is a simple demonstration of the XML/HTML indentation module
22
for <a href="index.html">CodeMirror</a>. The <a
23
href="js/parsexml.js">javascript</a> file contains some comments with
26
<div style="border: 1px solid black; padding: 0px;">
27
<textarea id="code" cols="120" rows="30">
28
<html style="color: green">
29
<!-- this is a comment -->
31
<title>HTML Example</title>
34
The indentation tries to be <em>somewhat &quot;do what
35
I mean&quot;</em>... but might not match your style.
41
<script type="text/javascript">
42
var editor = CodeMirror.fromTextArea('code', {
44
parserfile: "parsexml.js",
45
stylesheet: "css/xmlcolors.css",
47
continuousScanning: 500,