Sha256: acdd80c02be43d095f925cba723cfdab431409f68e929c22520bf49cb749f605

Contents?: true

Size: 995 Bytes

Versions: 46

Compression:

Stored size: 995 Bytes

Contents

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>CodeMirror: Autoresize Demo</title>
    <link rel="stylesheet" href="../lib/codemirror.css">
    <script src="../lib/codemirror.js"></script>
    <script src="../mode/css/css.js"></script>
    <link rel="stylesheet" href="../doc/docs.css">

    <style type="text/css">
      .CodeMirror {
        border: 1px solid #eee;
      }
      .CodeMirror-scroll {
        height: auto;
        overflow-y: hidden;
        overflow-x: auto;
      }
    </style>
  </head>
  <body>
    <h1>CodeMirror: Autoresize demo</h1>

    <form><textarea id="code" name="code">
.CodeMirror-scroll {
  height: auto;
  overflow-y: hidden;
  overflow-x: auto;
}</textarea></form>

<p>By setting a few CSS properties, CodeMirror can be made to
automatically resize to fit its content.</p>

    <script>
      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
        lineNumbers: true
      });
    </script>

  </body>
</html>

Version data entries

46 entries across 23 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.2.3-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.2.2.rc.2-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.2.2.rc.2-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.2.2.rc.1-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.2.2.rc.1-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.2.1-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.2.1-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.2.0-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.2.0-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.1.2-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.1.2-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.1.1-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.1.1-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.1.0-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.1.0-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.0.3.rc.4-jruby public/rearview/vendor/codemirror/demo/resize.html
rearview-1.0.3.rc.4-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.0.3.rc.3-jruby public/rearview-src/vendor/codemirror/demo/resize.html
rearview-1.0.3.rc.3-jruby public/rearview/vendor/codemirror/demo/resize.html