Sha256: 25593e8a4c7e047b523fc96228625a8a13afc9f7fb214974da0ce591054f96c4

Contents?: true

Size: 1.86 KB

Versions: 164

Compression:

Stored size: 1.86 KB

Contents

<!doctype html>

<title>CodeMirror: Cypher Mode for CodeMirror</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">

<link rel="stylesheet" href="../../lib/codemirror.css" />
<link rel="stylesheet" href="../../theme/neo.css" />
<script src="../../lib/codemirror.js"></script>
<script src="cypher.js"></script>
<style>
.CodeMirror {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
        </style>
<div id=nav>
  <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>

  <ul>
    <li><a href="../../index.html">Home</a>
    <li><a href="../../doc/manual.html">Manual</a>
    <li><a href="https://github.com/codemirror/codemirror">Code</a>
  </ul>
  <ul>
    <li><a href="../index.html">Language modes</a>
    <li><a class=active href="#">Cypher Mode for CodeMirror</a>
  </ul>
</div>

<article>
<h2>Cypher Mode for CodeMirror</h2>
<form>
            <textarea id="code" name="code">// Cypher Mode for CodeMirror, using the neo theme
MATCH (joe { name: 'Joe' })-[:knows*2..2]-(friend_of_friend)
WHERE NOT (joe)-[:knows]-(friend_of_friend)
RETURN friend_of_friend.name, COUNT(*)
ORDER BY COUNT(*) DESC , friend_of_friend.name
</textarea>
            </form>
            <p><strong>MIME types defined:</strong> 
            <code><a href="?mime=application/x-cypher-query">application/x-cypher-query</a></code>
        </p>
<script>
window.onload = function() {
  var mime = 'application/x-cypher-query';
  // get mime type
  if (window.location.href.indexOf('mime=') > -1) {
    mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5);
  }
  window.editor = CodeMirror.fromTextArea(document.getElementById('code'), {
    mode: mime,
    indentWithTabs: true,
    smartIndent: true,
    lineNumbers: true,
    matchBrackets : true,
    autofocus: true,
    theme: 'neo'
  });
};
</script>

</article>

Version data entries

164 entries across 164 versions & 7 rubygems

Version Path
weaver-0.8.14 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.13 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.12 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.11 data/weaver/js/plugins/codemirror/mode/cypher/index.html
jeygeethanmedia-inkpen-1.2.6.2 public/codemirror/mode/cypher/index.html
jeygeethanmedia-inkpen-1.2.6.1 public/codemirror/mode/cypher/index.html
templus_models-3.0.21 test/dummy/vendor/assets/javascripts/codemirror/mode/cypher/index.html
weaver-0.8.10 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.9 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.8 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.7 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.6 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.2 data/weaver/js/plugins/codemirror/mode/cypher/index.html
weaver-0.8.1 data/weaver/js/plugins/codemirror/mode/cypher/index.html
templus_models-3.0.20 test/dummy/vendor/assets/javascripts/codemirror/mode/cypher/index.html
templus_models-3.0.19 test/dummy/vendor/assets/javascripts/codemirror/mode/cypher/index.html
templus_models-3.0.17 test/dummy/vendor/assets/javascripts/codemirror/mode/cypher/index.html
stisla-rails-0.0.2 vendor/assets/modules/codemirror/mode/cypher/index.html
lines-engine-1.2.6.1 public/codemirror/mode/cypher/index.html
lines-engine-1.2.6 public/codemirror/mode/cypher/index.html