Sha256: 1dd731ff8d4c6a613d78352587cb9319f646cef35838740aff03ebfc375b0db1

Contents?: true

Size: 1.42 KB

Versions: 52

Compression:

Stored size: 1.42 KB

Contents

<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">
&lt;html>
  &lt;head>
    &lt;title>HTML Example&lt;/title>
    &lt;script type="text/javascript">
      function foo(bar, baz) {
        alert("quux");
        return bar + baz + 1;
      }
    &lt;/script>
    &lt;style type="text/css">
      div.border {
        border: 1px solid black;
        padding: 3px;
      }
      #foo code {
        font-family: courier, monospace;
        font-size: 80%;
        color: #448888;
      }
    &lt;/style>
  &lt;/head>
  &lt;body>
    &lt;p>Duh&lt;/p>
  &lt;/body>
&lt;/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>

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
erp_app-3.0.13 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.12 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.10 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.9 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.8 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.7 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.6 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.5 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.4 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.3 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.2 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
erp_app-3.0.1 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html
liquid_cms-0.2.0.11 generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.2.0.10 generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.3.0.8 lib/generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.2.0.9 generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.3.0.7 lib/generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.3.0.6 lib/generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.2.0.8 generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html
liquid_cms-0.3.0.5 lib/generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html