index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!doctype html>
  2. <title>CodeMirror: Tiki wiki mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <link rel="stylesheet" href="tiki.css">
  7. <script src="../../lib/codemirror.js"></script>
  8. <script src="tiki.js"></script>
  9. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  10. <div id=nav>
  11. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  12. <ul>
  13. <li><a href="../../index.html">Home</a>
  14. <li><a href="../../doc/manual.html">Manual</a>
  15. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  16. </ul>
  17. <ul>
  18. <li><a href="../index.html">Language modes</a>
  19. <li><a class=active href="#">Tiki wiki</a>
  20. </ul>
  21. </div>
  22. <article>
  23. <h2>Tiki wiki mode</h2>
  24. <div><textarea id="code" name="code">
  25. Headings
  26. !Header 1
  27. !!Header 2
  28. !!!Header 3
  29. !!!!Header 4
  30. !!!!!Header 5
  31. !!!!!!Header 6
  32. Styling
  33. -=titlebar=-
  34. ^^ Box on multi
  35. lines
  36. of content^^
  37. __bold__
  38. ''italic''
  39. ===underline===
  40. ::center::
  41. --Line Through--
  42. Operators
  43. ~np~No parse~/np~
  44. Link
  45. [link|desc|nocache]
  46. Wiki
  47. ((Wiki))
  48. ((Wiki|desc))
  49. ((Wiki|desc|timeout))
  50. Table
  51. ||row1 col1|row1 col2|row1 col3
  52. row2 col1|row2 col2|row2 col3
  53. row3 col1|row3 col2|row3 col3||
  54. Lists:
  55. *bla
  56. **bla-1
  57. ++continue-bla-1
  58. ***bla-2
  59. ++continue-bla-1
  60. *bla
  61. +continue-bla
  62. #bla
  63. ** tra-la-la
  64. +continue-bla
  65. #bla
  66. Plugin (standard):
  67. {PLUGIN(attr="my attr")}
  68. Plugin Body
  69. {PLUGIN}
  70. Plugin (inline):
  71. {plugin attr="my attr"}
  72. </textarea></div>
  73. <script type="text/javascript">
  74. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  75. mode: 'tiki',
  76. lineNumbers: true
  77. });
  78. </script>
  79. </article>