This is a very big problem for me. I often copy & paste stuff into wiki page using tag <pre> </pre> to maitain the original looking. But the long line cannot be wrapped into several shorter lines. The final results are very ugly.
How can I achieve word wrap within <pre></pre>?
Thanks in advance.
On Monday 18 October 2004 22:50, Kiss All wrote:
How can I achieve word wrap within <pre></pre>?
If you word-wrap a preformatted text, then it is not preformatted anymore :)
MediaWiki has a small problem that causes preformatted text to not being selected if it is longer than its "box" in monobook. If this is your concern, then copy-paste the preformatted text from the HTML source code.
If in general you want to apply some wordwrap in a preformatted text, then you need either to find a utility that does this job or write a shell script (assuming you work under the GNU operating system), or apply a wordwrap in a word processor and then copy-paste the resultant text inside a pre tag.
On Mon, 18 Oct 2004 23:05:23 +0300, NSK nsk2@wikinerds.org wrote:
On Monday 18 October 2004 22:50, Kiss All wrote:
How can I achieve word wrap within <pre></pre>?
If you word-wrap a preformatted text, then it is not preformatted anymore :)
I think it is feasible or even common to format something in several steps. Why not add just one word-wrap formatting phase for <pre> <pre/>?
Many first-time users of wikipedia tend to copy and paste something into wiki page but usually get a mess. It would be nice to support this intuitive usage of wikipedia somehow especially when there is no import functionality in mediawiki now.
The current situation seems to be : you have to type from the scratch or manually format existing materials to add page content into wikipedia.
I am dreaming we could copy& paste or import existing html files after several clicks.
On Tuesday 19 October 2004 01:19, Kiss All wrote:
I am dreaming we could copy& paste or import existing html files
This would increase the number of copyright violations to the infinity :)
I've actually found that the <code> tag seems to accomplish this, though it is an abuse of it's purpose.
If you really need wrapping in legit HTML, replace double spaces with , and line breaks with <br />, and any other HTML entities. Then place the whole thing within <font> tags, like <font face="Courier"> (Courier, and Courier New, are fixed width fonts)
On Mon, 18 Oct 2004 14:50:46 -0500, Kiss All kissall@gmail.com wrote:
This is a very big problem for me. I often copy & paste stuff into wiki page using tag <pre> </pre> to maitain the original looking. But the long line cannot be wrapped into several shorter lines. The final results are very ugly.
How can I achieve word wrap within <pre></pre>?
Thanks in advance.
-- Be good.... _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org