Sha256: faa3e8da8a6178fb4ee6363d3d9c182af5217bc7a0d287cd21dc9780756f7e3f

Contents?: true

Size: 1.31 KB

Versions: 6

Compression:

Stored size: 1.31 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="../addon/search/searchcursor.js"></script>
    <script src="../addon/search/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;}
      .CodeMirror-focused .cm-matchhighlight {
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);
        background-position: bottom;
        background-repeat: repeat-x;
      }
    </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,
  highlightSelectionMatches: true
});
</script>

    <p>Search and highlight occurences of the selected text.</p>

  </body>
</html>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mdbe-0.1.0 public/libs/codemirror/demo/matchhighlighter.html
maglev-database-explorer-0.0.5 public/libs/codemirror/demo/matchhighlighter.html
maglev-database-explorer-0.0.4 public/libs/codemirror/demo/matchhighlighter.html
maglev-database-explorer-0.0.3 public/libs/codemirror/demo/matchhighlighter.html
maglev-database-explorer-0.0.2 public/libs/codemirror/demo/matchhighlighter.html
maglev-database-explorer-0.0.1 public/libs/codemirror/demo/matchhighlighter.html