22 April, 2015

How to show code in a WordPress post

Simply convert the code to html via Pandoc. Something like this:

# pandoc codefile.foo > html.html

Or simply:

# pandoc codefile.foo

And the rest is copy paste.

No comments: