Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
5 lars 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
 
14
    .CodeMirror .cm-operator {
15
        color: orange;
16
    }
17
</style>
18
<div id=nav>
19
    <a href="http://codemirror.net">
20
        <h1>CodeMirror</h1>
21
        <img id=logo src="../../doc/logo.png">
22
    </a>
23
    <ul>
24
        <li>
25
            <a href="../../index.html">Home</a>
26
            <li>
27
                <a href="../../doc/manual.html">Manual</a>
28
                <li>
29
                    <a href="https://github.com/codemirror/codemirror">Code</a>
30
    </ul>
31
    <ul>
32
        <li>
33
            <a href="../index.html">Language modes</a>
34
            <li>
35
                <a class=active href="#">Solr</a>
36
    </ul>
37
</div>
38
<article>
39
    <h2>Solr mode</h2>
40
    <div>
41
        <textarea id="code" name="code">author:Camus title:"The Rebel" and author:Camus philosophy:Existentialism -author:Kierkegaard hardToSpell:Dostoevsky~ published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")</textarea>
42
    </div>
43
    <script>
44
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
45
        {
46
            mode: 'solr',
47
            lineNumbers: true
48
        });
49
    </script>
50
    <p>
51
        <strong>MIME types defined:</strong> <code>text/x-solr</code>.</p>
52
</article>