1
0

index.html 1.4 KB

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