[Haskell-cafe] Haskell code in Wordpress

Dougal Stanton ithika at gmail.com
Fri Nov 23 15:34:12 EST 2007


On 23/11/2007, Paulo J. Matos <pocm at soton.ac.uk> wrote:
> Hi all,
>
> I'm curious about the best way to typeset haskell code in a wordpress
> blog. Using blockquote removes all indentation. :-(
>

There is a code highlighter for wordpress that works for Haskell code,
but it's a bit of a pain to use, especially with the visual editor.
It'll do a one-way conversion of ">" into &gt; whenever you do a
preview. :-(

It's easy to use though.

<pre lang="haskell">
main = putStrLn "yo lambda"
</pre>

Unfortunately WP isn't really great at handling text-preprocessors
like this or Markdown. To work properly they have to subvert the
system a bit.

D.

-- 
Dougal Stanton
dougal at dougalstanton.net // http://www.dougalstanton.net


More information about the Haskell-Cafe mailing list