
Hi all, I'm curious about the best way to typeset haskell code in a wordpress blog. Using blockquote removes all indentation. :-( Cheers, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK

Paulo J. Matos wrote:
Hi all,
I'm curious about the best way to typeset haskell code in a wordpress blog. Using blockquote removes all indentation. :-(
Cheers,
Probably HsColour: http://www.cs.york.ac.uk/fp/darcs/hscolour/ --8<-- hscolour is a small Haskell script to colourise Haskell code. It currently has five output formats: ANSI terminal codes, HTML 3.2 with <font> tags, HTML 4.01 with CSS, LaTeX, and mIRC chat client codes. --8<-- Would be nice to have a server-side thing too, though. Thanks, Claude -- http://claudiusmaximus.goto10.org

2007/11/23, Paulo J. Matos
Hi all,
I'm curious about the best way to typeset haskell code in a wordpress blog. Using blockquote removes all indentation. :-(
I'm using geshi with wordpress on my blog (codeside.org) and drupal (upcoming haskell.pl page). But you have to change how strings are colored because out of the box coloring is so ugly. (It should be very easy but I didn't bother to do it yet) Some links: Geshi plugin for wordpress: http://wordpress.org/extend/plugins/wp-syntax/ Geshi itself: http://qbnz.com/highlighter/ Cheers, Radek. -- Codeside: http://codeside.org/ Przedszkole Miejskie nr 86 w Lodzi: http://www.pm86.pl/

On 23/11/2007, Paulo J. Matos
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 > 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@dougalstanton.net // http://www.dougalstanton.net

On Fri, 2007-11-23 at 20:22 +0000, Paulo J. Matos wrote:
Hi all,
I'm curious about the best way to typeset haskell code in a wordpress blog. Using blockquote removes all indentation. :-(
For the Gtk2Hs website I used a program (partly derived from hscolour) to highlight and adds links to documentation. It generates xhtml which one can just paste in. See the hello world example on this page: http://haskell.org/gtk2hs/documentation/ The program is here: http://darcs.haskell.org/gtk2hs/docs/tools/AddLinks.hs Duncan

Thanks all for your suggestions.
On Nov 23, 2007 10:31 PM, Duncan Coutts
On Fri, 2007-11-23 at 20:22 +0000, Paulo J. Matos wrote:
Hi all,
I'm curious about the best way to typeset haskell code in a wordpress blog. Using blockquote removes all indentation. :-(
For the Gtk2Hs website I used a program (partly derived from hscolour) to highlight and adds links to documentation. It generates xhtml which one can just paste in.
See the hello world example on this page:
http://haskell.org/gtk2hs/documentation/
The program is here:
http://darcs.haskell.org/gtk2hs/docs/tools/AddLinks.hs
Duncan
-- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK
participants (6)
-
Claude Heiland-Allen
-
Dougal Stanton
-
Duncan Coutts
-
Neil Mitchell
-
Paulo J. Matos
-
Radosław Grzanka