all repos — NoPaste @ 3e3c433f026c49e04d0efa0f0f39fc688ed32bb1

Resurrected - The PussTheCat.org fork of NoPaste

scripts/CodeMirror/mode/solr/index.html (view raw)

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