index.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!doctype html>
  2. <title>CodeMirror: Solr mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="solr.js"></script>
  8. <style type="text/css">
  9. .CodeMirror {
  10. border-top: 1px solid black;
  11. border-bottom: 1px solid black;
  12. }
  13. .CodeMirror .cm-operator {
  14. color: orange;
  15. }
  16. </style>
  17. <div id=nav>
  18. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  19. <ul>
  20. <li><a href="../../index.html">Home</a>
  21. <li><a href="../../doc/manual.html">Manual</a>
  22. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  23. </ul>
  24. <ul>
  25. <li><a href="../index.html">Language modes</a>
  26. <li><a class=active href="#">Solr</a>
  27. </ul>
  28. </div>
  29. <article>
  30. <h2>Solr mode</h2>
  31. <div>
  32. <textarea id="code" name="code">author:Camus
  33. title:"The Rebel" and author:Camus
  34. philosophy:Existentialism -author:Kierkegaard
  35. hardToSpell:Dostoevsky~
  36. published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")</textarea>
  37. </div>
  38. <script>
  39. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  40. mode: 'solr',
  41. lineNumbers: true
  42. });
  43. </script>
  44. <p><strong>MIME types defined:</strong> <code>text/x-solr</code>.</p>
  45. </article>