mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-04-02 05:41:00 +01:00
[svn] horrid .svns copied accidentally
This commit is contained in:
52
media/CodeMirror-0.62/mixedtest.html
Normal file
52
media/CodeMirror-0.62/mixedtest.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script src="js/codemirror.js" type="text/javascript"></script>
|
||||
<title>CodeMirror: HTML mixed-mode demonstration</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/docs.css"/>
|
||||
</head>
|
||||
<body style="padding: 20px;">
|
||||
|
||||
<p>This is a simple demonstration of the HTML mixed-mode indentation
|
||||
module for <a href="index.html">CodeMirror</a>. Script tags use the JS
|
||||
parser, style tags use the CSS parser.</p>
|
||||
|
||||
<div style="border: 1px solid black; padding: 3px;">
|
||||
<textarea id="code" cols="120" rows="30">
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML Example</title>
|
||||
<script type="text/javascript">
|
||||
function foo(bar, baz) {
|
||||
alert("quux");
|
||||
return bar + baz + 1;
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
div.border {
|
||||
border: 1px solid black;
|
||||
padding: 3px;
|
||||
}
|
||||
#foo code {
|
||||
font-family: courier, monospace;
|
||||
font-size: 80%;
|
||||
color: #448888;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Duh</p>
|
||||
</body>
|
||||
</html>
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var editor = CodeMirror.fromTextArea('code', {
|
||||
height: "350px",
|
||||
parserfile: ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"],
|
||||
stylesheet: ["css/xmlcolors.css", "css/jscolors.css", "css/csscolors.css"],
|
||||
path: "js/"
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user