Sha256: 5cecab4b991ab93f17110e547462a908116d6cc64647043a3e7a0713e925338f

Contents?: true

Size: 1.22 KB

Versions: 46

Compression:

Stored size: 1.22 KB

Contents

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <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

46 entries across 23 versions & 1 rubygems

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