Advertisement
Guest User

Markdown

a guest
Feb 26th, 2015
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. Headings
  2.  
  3. You can add first-, second- and third-level headings to your message by placing a hash symbol (#) at the start of a line, as follows:
  4.  
  5. # This is an extremely large header
  6.  
  7. ## Half as big as the one above
  8.  
  9. ### Twice the size of normal text
  10.  
  11. Make sure to leave a space between the hashes and your text, to avoid creating a #tag instead of a heading. The heading ends once you hit enter to proceed to the next line.
  12. Lists
  13.  
  14. To create an bulleted list, place either *, + or - in front of each line you want as part of the list.
  15.  
  16. It’s also possible to make numbered lists by placing “1.”, “2.”, etc. in front of the list items. To create a numbered list, the numbers must have periods/full stops after them.
  17.  
  18. Again, make sure to leave a space between the “bullet” character and the text on each line, and to leave a line space between the list and any preceding/following text, otherwise it will not work.
  19.  
  20. This is how to create a bulleted list:
  21.  
  22. * item one;
  23. * item two;
  24. * item three.
  25.  
  26. This will become another bulleted list:
  27.  
  28. - item one;
  29. - item two;
  30. - item three.
  31.  
  32. And this will be a numbered list:
  33.  
  34. 1. item one;
  35. 2. item two;
  36. 3. item three.
  37.  
  38. Code blocks
  39.  
  40. If you are a developer you may be interested in code blocks. To create a code block, start your text/code with four backticks ( ` ` ` ` ). To return to normal text, close the code block with another four.
  41.  
  42. Another way to do this is to start each of your lines of code with four spaces. Adding more spaces will allow for further indenting.
  43.  
  44. It’s also possible to display code inline, `by starting and ending the snippet with a backtick`.
  45.  
  46. This is a line of normal text.
  47.  
  48. ````this will be a code block````
  49.  
  50. Then some more more normal text.
  51.  
  52. and then a bit more code
  53. a line of code indented by two spaces
  54.  
  55. Horizontal line
  56.  
  57. To create a horizontal line, use at least three - - -, _ _ _ or * * * on a separate line. Any number above three will do the same thing and spaces between the characters do not matter.
  58.  
  59. There will be a horizontal rule between this line of text and the next one.
  60.  
  61. ---
  62.  
  63. And now you can start the next section of your text.
  64.  
  65. Italics and bold
  66.  
  67. Place either asterisks or underscores either side of a word or words to make them italic, bold or bold italic.
  68.  
  69. Italics: *word* or _word_
  70.  
  71. Bold: **word** or __word__
  72.  
  73. Bold italics: ***word*** or ___word___
  74.  
  75. You must of course match the asterisks/underscores in pairs either side of words for the formatting to work. Typing “I want to display this as a **bold* word” won’t display the word in bold.
  76. Inline links
  77.  
  78. To create an inline link, use the following code:
  79.  
  80. [displayed text here](http://link.address.here "alt text")
  81.  
  82. The “alt text” is optional, and is displayed as a tool-tip when the cursor is moved over the link.
  83. Images
  84.  
  85. To add external images to your post, comment or private message, use the same code as for a link, but with an exclamation point at the front:
  86.  
  87. ![Alt text](http://website.com/image.jpg "optional title")
  88.  
  89. For this to work, you must provide a direct link to a valid image file, not to a web page with an image or images on it.
  90.  
  91. The alternative text in the square brackets is displayed if the image cannot be loaded, and the optional title is displayed as a tool-tip when the cursor is moved over the image; both are useful but not essential.
  92. Escape
  93.  
  94. If you want your message to include a character which is also used in Markdown coding, you can prevent it from being read by Markdown as a formatting code by “escaping” it. To do this, place a backslash ( \ ) in front of the character. For example, typing
  95.  
  96. this \_ is an underscore
  97.  
  98. prevents Markdown from reading the underscore as a Markdown code and allows firm* to display the underscore rather than creating italic text.
  99.  
  100. You can, however, type “firm*” or “F*” without the asterisk becoming a formatting code!
  101. Special characters
  102.  
  103. You can create the following symbols and other special characters using a combination of characters:
  104.  
  105. "->" = "→" ; "<-" = "←" ; "<->" = "↔"
  106. "(c)" = "©" ; "(r)" = "®" ; "(tm)" = ™
  107. "<3″ = "♥ "
  108. "x^2″ = "x²"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement