Dotclear blog editing problem
The dotclear blogging engine has some issues when including pre-formated html; it removes all leading spaces and mangles empty lines.
This is a significant problem when posting nicely coloured code snippets like those produced by hilite.me or the SyntaxHilighter in Wordpress.
A small hello world app ends up looking like this -
Instead of this -
Ahhh, much more readable. My way of solving this requires
sed, so you’ll need a Linux installation, cygwin or Windows version of the command.
My hilite.me CSS looks like this -
border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;font-size:9px
Create a file called
Its content is
Run the command -
sed -f SedFixesForDotclear.sed input.html > output.html
Paste the output file into your post.