|We don't bite newbies here... much|
Re: code without newline doesn't wrapby Dietz (Curate)
|on Feb 12, 2005 at 16:05 UTC||Need Help??|
This is code
For the behavior of code wrapper, I'm glad that it doesn't wrap code when there is no newline.
For instance when code tags are used for mentioning functions or such within a sentence.
But this is just a matter of taste.
2 examples which are using "use strict;" in code tags:
Following use strict; is in code tags and appears in one sentence.
Now here is a sentence with
use strict;and it is also containing
use warnings;just to demonstrate that this is one sentence.
The second sentence would appear in the above form if code wrapper would wrap code even when there is no newline in it.
At least if you are using a similiar CSS.
Maybe there is a need for another tag you could use instead of <code></code> like <fixed></fixed> , which could be used in sentences instead of code tags, but there is no profit when users don't use it.
Corrected link-id to demerphq's CSS
and added inline CSS style to simulate the display of my CSS settings for code tags.
Removed inline CSS style because it didn't show up after my update.
It seems that I'm not able to show a simulation of my CSS settings (sigh).
In fact text in code tags should show up in a table with black background.