G'day perl-diddler,
Regarding what it says below the input window, maybe changing "... put the characters ..." to "... put these characters ..." would clarify which characters this statement references.
The reason why things are the way they are, is to allow code like this:
sub amp { ... } my $coderef = \&
Unfortunately, your request would render that as:
sub amp { ... } my $coderef = \&
The workaround is to use 'pre' tags instead of 'code' tags for blocks (and 'tt' tags for inline text):
This pi (π) using π does display correctly. This pi (π) using π does display correctly. This pi (π) using π does display correctly. This pi (π) using literal pi character does display correctly.
[Note: On previewing, I noticed that the literal pi character that I pasted into that last example now appears as π in the textarea.]
Use this workaround sparingly as you don't get a [download] link. Also, line wrapping (or absence thereof) can be problematic so aim to keep lines short (I think <= 72 characters is optimal, inasmuch as it doesn't mess up normal page layout).
— Ken
In reply to Re: BUG: code blocks don't retain literal formatting -- could they?
by kcott
in thread BUG: code blocks don't retain literal formatting -- could they?
by perl-diddler
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |