code_blocks.unit 640 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. >>> single line
  2. code
  3. <<<
  4. <pre><code>code
  5. </code></pre>
  6. >>> include leading whitespace after indentation
  7. zero
  8. one
  9. two
  10. three
  11. <<<
  12. <pre><code>zero
  13. one
  14. two
  15. three
  16. </code></pre>
  17. >>> code blocks separated by newlines form one block
  18. zero
  19. one
  20. two
  21. three
  22. <<<
  23. <pre><code>zero
  24. one
  25. two
  26. three
  27. </code></pre>
  28. >>> code blocks separated by two newlines form multiple blocks
  29. zero
  30. one
  31. two
  32. three
  33. <<<
  34. <pre><code>zero
  35. one
  36. two
  37. three
  38. </code></pre>
  39. >>> escape HTML characters
  40. <&>
  41. <<<
  42. <pre><code>&lt;&amp;&gt;
  43. </code></pre>
  44. >>> issue #497
  45. 'foo'
  46. <<<
  47. <pre><code>'foo'
  48. </code></pre>