Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!doctype html>
2
<title>CodeMirror: Textile 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="textile.js"></script>
8
<style>
9
    .CodeMirror {
10
        background: #f8f8f8;
11
    }
12
</style>
13
<div id=nav>
14
    <a href="http://codemirror.net">
15
        <h1>CodeMirror</h1>
16
        <img id=logo src="../../doc/logo.png">
17
    </a>
18
    <ul>
19
        <li>
20
            <a href="../../index.html">Home</a>
21
            <li>
22
                <a href="../../doc/manual.html">Manual</a>
23
                <li>
24
                    <a href="https://github.com/marijnh/codemirror">Code</a>
25
    </ul>
26
    <ul>
27
        <li>
28
            <a href="../index.html">Language modes</a>
29
            <li>
30
                <a class="active" href="#">Textile</a>
31
    </ul>
32
</div>
33
<article>
34
    <h2>Textile mode</h2>
35
    <form>
36
        <textarea id="code" name="code"> h1. Textile Mode A paragraph without formatting. p. A simple Paragraph. h2. Phrase Modifiers Here are some simple phrase modifiers: *strong*, _emphasis_, **bold**, and __italic__. A ??citation??, -deleted text-, +inserted text+, some ^superscript^,
37
            and some ~subscript~. A %span element% and @code element@ A "link":http://example.com, a "link with (alt text)":urlAlias [urlAlias]http://example.com/ An image: !http://example.com/image.png! and an image with a link: !http://example.com/image.png!:http://example.com
38
            A sentence with a footnote.[123] fn123. The footnote is defined here. Registered(r), Trademark(tm), and Copyright(c) h2. Headers h1. Top level h2. Second level h3. Third level h4. Fourth level h5. Fifth level h6. Lowest level h2. Lists * An
39
            unordered list ** foo bar *** foo bar **** foo bar ** foo bar # An ordered list ## foo bar ### foo bar #### foo bar ## foo bar - definition list := description - another item := foo bar - spanning ines := foo bar foo bar =: h2. Attributes
40
            Layouts and phrase modifiers can be modified with various kinds of attributes: alignment, CSS ID, CSS class names, language, padding, and CSS styles. h3. Alignment div
41
            <. left align div>. right align h3. CSS ID and class name You are a %(my-id#my-classname) rad% person. h3. Language p[en_CA]. Strange weather, eh? h3. Horizontal Padding p(())). 2em left padding, 3em right padding h3. CSS styling p{background: red}. Fire! h2.
42
                Table |_. Header 1 |_. Header 2 | |{background:#ddd}. Cell with background| Normal | |\2. Cell spanning 2 columns | |/2. Cell spanning 2 rows |(cell-class). one | | two | |>. Right aligned cell |
43
                <. Left aligned cell | h3. A table with
44
                    attributes: table(#prices). |Adults|$5| |Children|$2| h2. Code blocks bc. function factorial(n) { if (n===0 ) { return 1; } return n * factorial(n - 1); } pre.. ,,,,,, o# '9MMHb': '-,o,
45
         .oH":HH$' "' ' -*R&o,
46
        dMMM*" "'`'      .oM"HM?. ,MMM '          "HLbd< ?&H\
47
      .:MH ."\          ` MM  MM&b
48
     . "*H    -        &MMMMMMMMMH:
49
     .    dboo        MMMMMMMMMMMM.
50
     .   dMMMMMMb      *MMMMMMMMMP.
51
     .    MMMMMMMP        *MMMMMP .
52
          `#MMMMM           MM6P ,
53
       ' `MMMP "           HM*`,
54
        '    :MM             .- ,
55
         '.   `#?..  .       ..'
56
            -.   .         .-
57
              ''-.oo,oo.-''
58
 
59
\. _(9>
60
 \==_)
61
  -'=
62
 
63
h2. Temporarily disabling textile markup
64
 
65
notextile. Don't __touch this!__
66
 
67
Surround text with double-equals to disable textile inline. Example: Use ==*asterisks*== for *strong* text.
68
 
69
 
70
h2. HTML
71
 
72
Some block layouts are simply textile versions of HTML tags with the same name, like @div@, @pre@, and @p@. HTML tags can also exist on their own line:
73
 
74
<section>
75
  <h1>Title</h1>
76
  <p>Hello!</p>
77
</section>
78
 
79
</textarea></form>
80
    <script>
81
        var editor = CodeMirror.fromTextArea(document.getElementById("code "), {
82
            lineNumbers: true,
83
            mode: "text/x-textile "
84
        });
85
    </script>
86
 
87
    <p><strong>MIME types defined:</strong> <code>text/x-textile</code>.</p>
88
 
89
    <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#textile_* ">normal</a>,  <a href="../../test/index.html#verbose,textile_* ">verbose</a>.</p>
90
 
91
</article>