You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB

2 months ago
  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>
  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="https://codemirror.net/5"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></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/codemirror5">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>