diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-02-09 03:21:57 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-02-09 03:21:57 +0000 |
commit | f6ea504b83bbcf3e136bf7c31bc7a1a8be8820d7 (patch) | |
tree | 16902649101b77cbe3a03532ecf6af485b99f01b | |
parent | f8d16817c9b1dc3b5bbb40bef54636bec1437dfe (diff) |
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
-rw-r--r-- | README | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -733,7 +733,7 @@ row of tildes at the start and end: Optionally, you may specify the language of the code block using this syntax: - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell .numberLines} qsort [] = [] qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ qsort (filter (>= x) xs) @@ -741,7 +741,13 @@ this syntax: Some output formats can use this information to do syntax highlighting. Currently, the only output format that uses this information is HTML. -The code block above would appear in the context + +If pandoc has been compiled with syntax highlighting support, then the +code block above will appear highlighted, with numbered lines. (To see +which languages are supported, do `pandoc --version`.) + +If pandoc has not been compiled with syntax highlighting support, the +code block above will appear as follows: <pre class="haskell"> <code> @@ -749,11 +755,6 @@ The code block above would appear in the context </code> </pre> -This allows the HTML to be postprocessed using a syntax highlighting tool. -(Pandoc itself does not do any syntax highlighting.) Note that multiple -classes can be specified: for example, one might use `{.haskell -.number}` to specify that lines be numbered in the highlighted output. - Title blocks ------------ |