Allegro.cc - Online Community

Allegro.cc Forums » Allegro.cc Comments » [pre][/pre] tags

This thread is locked; no one can reply to it. rss feed Print
[pre][/pre] tags
bamccaig
Member #7,536
July 2006
avatar

I really dislike how the [pre][/pre] tags expand the forums instead of scrolling horizontally... :-/ If possible, I think it would be a lot more user-friendly to scroll (some things benefit from being on a single line)... :-/ At the very least, it would be nice if the post grew to the right only so the left side maintained it's space instead of collapsing on the avatar, which just makes it difficult to read.

Also, it would be nice if other BBCode worked inside of the [pre][/pre] tags. For example, [b][/b], [i][i], and [u][/u] tags. Out of curiosity, why are these limitations on the forums and can they change?

BAF
Member #2,981
December 2002
avatar

Why do you need bold/italics/formatting in a PREformatted text section?

Jeff Bernard
Member #6,698
December 2005
avatar

Exactly, it's preformatted, so it needs to be formatted.

--
I thought I was wrong once, but I was mistaken.

bamccaig
Member #7,536
July 2006
avatar

BAF said:

Why do you need bold/italics/formatting in a PREformatted text section?

Because preformatted text essentially only covers whitespace... ::) If you want to show emphasis or something in the forums' preformatted text you often need to add more text, which might change the text's meaning or make it less clear. Being able to style the text would make it more readable and clear, IMO.

BAF
Member #2,981
December 2002
avatar

I can't think of many reasons at all why I would need b/u/i within a pre.

bamccaig
Member #7,536
July 2006
avatar

CGamesPlay
Member #2,559
July 2002
avatar

Well, I can do it.

Just use tt instead of pre.

Based on conversations I've had with Matthew years ago, the block-level elements are fundamentally different than the inline elements, in that the block-level elements force the parser into a new mode.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

bamccaig
Member #7,536
July 2006
avatar

CGamesPlay said:

Just use tt instead of pre.

Yeah, I do that whenever I can, but tt doesn't maintain whitespace, which sometimes matters... :-/

CGamesPlay
Member #2,559
July 2002
avatar

Ah, so the real root of our problem is that Matthew's parser doesn't handle whitespace properly :) Also he collapses non-breaking spaces to spaces. Tsk, tsk.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

bamccaig
Member #7,536
July 2006
avatar

CGamesPlay said:

Ah, so the real root of our problem is that Matthew's parser doesn't handle whitespace properly :) Also he collapses non-breaking spaces to spaces. Tsk, tsk.

While we're on the subject, the parser doesn't seem to handle single-quotes (apostrophes) properly in all cases. For example,...

Allegro.cc's parser is broken

...is displayed as...

Allegro.cc's parser is broken

...where the apostrophe somehow terminates the <a>nchor and a semi-colon is appended after the text. :-/ The resulting HTML is...

<i>Allegro.cc&#39s parser is broken</i>;

CGamesPlay
Member #2,559
July 2002
avatar

I guess put the em tags outside the link? :P

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Kibiz0r
Member #6,203
September 2005
avatar

CGamesPlay
Member #2,559
July 2002
avatar

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

MiquelFire
Member #3,110
January 2003
avatar

Why is the ' break links?

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

Go to: