Sha256: 39b7f1407614f08821b772cc7c33198bf29bfdcba485011a4e63b74efb947ece

Contents?: true

Size: 1.31 KB

Versions: 14

Compression:

Stored size: 1.31 KB

Contents

<!doctype html>
<html>
  <head>
    <title>CodeMirror: Breakpoint Demo</title>
    <link rel="stylesheet" href="../lib/codemirror.css">
    <script src="../lib/codemirror.js"></script>
    <script src="../mode/javascript/javascript.js"></script>
    <link rel="stylesheet" href="../doc/docs.css">

    <style type="text/css">
      .CodeMirror-gutter {
        width: 3em;
        background: white;
      }
      .CodeMirror {
        border: 1px solid #aaa;
      }
    </style>
  </head>
  <body>
    <h1>CodeMirror: Breakpoint demo</h1>

    <form><textarea id="code" name="code">
CodeMirror.fromTextArea(document.getElementById("code"), {
  lineNumbers: true,
  onGutterClick: function(cm, n) {
    var info = cm.lineInfo(n);
    if (info.markerText)
      cm.clearMarker(n);
    else
      cm.setMarker(n, "<span style=\"color: #900\">●</span> %N%");
  }
});
</textarea></form>

<p>Click the line-number gutter to add or remove 'breakpoints'.</p>

    <script>
      CodeMirror.fromTextArea(document.getElementById("code"), {
        lineNumbers: true,
        onGutterClick: function(cm, n) {
          var info = cm.lineInfo(n);
          if (info.markerText)
            cm.clearMarker(n);
          else
            cm.setMarker(n, "<span style=\"color: #900\">●</span> %N%");
        }
      });
    </script>

  </body>
</html>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
burp_cms-1.3.13 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.12 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.11 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.10 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.9 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.8 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.7 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.6 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.5 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.4 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.3 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.2 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.1 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html
burp_cms-1.3.0 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html