I have the following problem with phpMyFAQ 2.0.2: To format source code examples, I mark them as "Preformatted". In the HTML view, they are represented as <pre> ... </pre> blocks.
But when some lines are indented, the whitespace at the beginning of each line gets deleted when I close/reopen the "edit article" page.
How can I write code examples like this?
Code: Select all
begin
if (true) {
foo;
} else {
bar;
}
end;
Code: Select all
begin
if (true) {
foo;
} else {
bar;
}
end;