Sha256: eb5e1c7eb250164d79c12edc11126a45858e88ac071eaf11d0d53926f1f828f9

Contents?: true

Size: 1.2 KB

Versions: 14

Compression:

Stored size: 1.2 KB

Contents

<!doctype html>
<html>
  <head>
    <title>CodeMirror: Match Highlighter Demo</title>
    <link rel="stylesheet" href="../lib/codemirror.css">
    <script src="../lib/codemirror.js"></script>
    <script src="../lib/util/searchcursor.js"></script>
    <script src="../lib/util/match-highlighter.js"></script>
    <link rel="stylesheet" href="../doc/docs.css">

    <style type="text/css">
      .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
	  
      span.CodeMirror-matchhighlight { background: #e9e9e9 }
      .CodeMirror-focused span.CodeMirror-matchhighlight { background: #e7e4ff; !important }
    </style>
  </head>
  <body>
    <h1>CodeMirror: Match Highlighter Demo</h1>

    <form><textarea id="code" name="code">Select this text: hardToSpotVar
	And everywhere else in your code where hardToSpotVar appears will automatically illuminate.
Give it a try!  No more hardToSpotVars.</textarea></form>

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

    <p>Highlight matches of selected text on select</p>

  </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/matchhighlighter.html
burp_cms-1.3.12 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.11 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.10 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.9 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.8 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.7 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.6 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.5 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.4 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.3 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.2 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.1 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html
burp_cms-1.3.0 app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html