Theme Inspinia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!doctype html>
  2. <title>CodeMirror: GFM 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="../../addon/mode/overlay.js"></script>
  8. <script src="../xml/xml.js"></script>
  9. <script src="../markdown/markdown.js"></script>
  10. <script src="gfm.js"></script>
  11. <script src="../javascript/javascript.js"></script>
  12. <script src="../css/css.js"></script>
  13. <script src="../htmlmixed/htmlmixed.js"></script>
  14. <script src="../clike/clike.js"></script>
  15. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  16. <div id=nav>
  17. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  18. <ul>
  19. <li><a href="../../index.html">Home</a>
  20. <li><a href="../../doc/manual.html">Manual</a>
  21. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  22. </ul>
  23. <ul>
  24. <li><a href="../index.html">Language modes</a>
  25. <li><a class=active href="#">GFM</a>
  26. </ul>
  27. </div>
  28. <article>
  29. <h2>GFM mode</h2>
  30. <form><textarea id="code" name="code">
  31. GitHub Flavored Markdown
  32. ========================
  33. Everything from markdown plus GFM features:
  34. ## URL autolinking
  35. Underscores_are_allowed_between_words.
  36. ## Fenced code blocks (and syntax highlighting)
  37. ```javascript
  38. for (var i = 0; i &lt; items.length; i++) {
  39. console.log(items[i], i); // log them
  40. }
  41. ```
  42. ## Task Lists
  43. - [ ] Incomplete task list item
  44. - [x] **Completed** task list item
  45. ## A bit of GitHub spice
  46. * SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  47. * User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  48. * User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  49. * \#Num: #1
  50. * User/#Num: mojombo#1
  51. * User/Project#Num: mojombo/god#1
  52. See http://github.github.com/github-flavored-markdown/.
  53. </textarea></form>
  54. <script>
  55. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  56. mode: 'gfm',
  57. lineNumbers: true,
  58. theme: "default"
  59. });
  60. </script>
  61. <p>Optionally depends on other modes for properly highlighted code blocks.</p>
  62. <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gfm_*">normal</a>, <a href="../../test/index.html#verbose,gfm_*">verbose</a>.</p>
  63. </article>