git.iko.soy/typeable/pandoc
on master help sign in
Updated README's instructions on delimited code blocks to include

information about syntax highlighting. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1225 788f1e2b-df1e-0410-8736-df70ead52e1b

commitf6ea504b83bbcf3e136bf7c31bc7a1a8be8820d7 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 9 Feb 2008, 03:21 (19 years ago) parentf8d1681
1 file changed+8−7
README+8−7
README+8−7
@@ -733,7 +733,7 @@ row of tildes at the start and end:
733733Optionally, you may specify the language of the code block using
734734this syntax:
735735
736− ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell}
736+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell .numberLines}
737737 qsort [] = []
738738 qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
739739 qsort (filter (>= x) xs)
@@ -741,7 +741,13 @@ this syntax:
741741
742742Some output formats can use this information to do syntax highlighting.
743743Currently, the only output format that uses this information is HTML.
744−The code block above would appear in the context
744+
745+If pandoc has been compiled with syntax highlighting support, then the
746+code block above will appear highlighted, with numbered lines. (To see
747+which languages are supported, do `pandoc --version`.)
748+
749+If pandoc has not been compiled with syntax highlighting support, the
750+code block above will appear as follows:
745751
746752 <pre class="haskell">
747753 <code>
@@ -749,11 +755,6 @@ The code block above would appear in the context
749755 </code>
750756 </pre>
751757
752−This allows the HTML to be postprocessed using a syntax highlighting tool.
753−(Pandoc itself does not do any syntax highlighting.) Note that multiple
754−classes can be specified: for example, one might use `{.haskell
755−.number}` to specify that lines be numbered in the highlighted output.
756−
757758Title blocks
758759------------
759760