16 Oct
2003
16 Oct
'03
10:02 a.m.
begin ajb@spamcop.net quote:
Quoting Steffen Mazanek <steffen.mazanek@unibw-muenchen.de>:
Would it make sense, to add a xml like code environment as well, e.g., <code>...</code>?
It's hard to say. The problem is that some Haskell characters are also important for XML (e.g. <, &) and so you can't just cut and paste valid Haskell inside a <code>...</code> wrapper and expect it to work without some additional markup.
You could use a CDATA section: <code><[CDATA[ ...haskell code goes here... ]]></code> This way the only character sequence you have to avoid in the code is ]]>, which isn't really a restriction. Udo.