Welcome to WebmasterWorld Guest from 54.159.44.227

Forum Moderators: lawman

Message Too Old, No Replies

Suggestion: preformatted code posts

[code] does not preserve formatting

     

MikeFoster

5:20 am on Jan 9, 2005 (gmt 0)

10+ Year Member



Sorry to be so picky, but Javascript forums are where I hang out, so this is a real pet peeve of mine:

The [code] 'style code' does not preserve formatting, and [pre] doesn't either.

Now let me say: WebmasterWorld is awesome! Thanks for all the hard work :)

photon

3:15 pm on Jan 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think that a blank line will cancel out the formatting. One workaround is to use a "." in place of a blank line.

So

This is line 1
This is line 2

This is line 3 after a blank line


breaks, but
This is line 1
This is line 2
.
This is line 3 after a blank line

keeps the formatting intact.

Ditto for multiple spaces. You'll have to use "." to keep them from being squished into one space.

encyclo

4:13 pm on Jan 10, 2005 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



[ pre ][ /pre ]
usually works well for keeping things on one line. What problems have you encountered?

For the line breaks, you can put an empty bbcode block to preserve the formatting. For example

[ b ][ /b ]
(without the spaces).

MikeFoster

4:20 pm on Jan 14, 2005 (gmt 0)

10+ Year Member



Thanks for your replies. You've confirmed that it wasn't just me making dumb mistakes - which I do often ;-)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month