Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-25 Thread Paulo J. Matos
Thanks all for your suggestions.

On Nov 23, 2007 10:31 PM, Duncan Coutts <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-11-23 at 20:22 +, 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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Duncan Coutts
On Fri, 2007-11-23 at 20:22 +, 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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Dougal Stanton
On 23/11/2007, Paulo J. Matos <[EMAIL PROTECTED]> 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 > whenever you do a
preview. :-(

It's easy to use though.


main = putStrLn "yo lambda"


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
[EMAIL PROTECTED] // http://www.dougalstanton.net
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Radosław Grzanka
2007/11/23, Paulo J. Matos <[EMAIL PROTECTED]>:
> 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/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Claude Heiland-Allen

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 
 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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Neil Mitchell
Hi

> I'm curious about the best way to typeset haskell code in a wordpress
> blog. Using blockquote removes all indentation. :-(

 should work

Thanks

Neil
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread 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. :-(

Cheers,

-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe