Welcome to WebmasterWorld Guest from 54.198.108.19

Forum Moderators: lawman

Message Too Old, No Replies

Suggestion: preformatted code posts

[code] does not preserve formatting

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

Junior Member

10+ Year Member

joined:July 20, 2001
posts:137
votes: 0


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 :)

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 13, 2002
posts:818
votes: 0


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.

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

Senior Member from CA 

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

joined:Aug 31, 2003
posts:9074
votes: 6


[ 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).
4:20 pm on Jan 14, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:July 20, 2001
posts:137
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members