Code Tags
Displaying 1-7 of 7 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
TomT64

I'm not sure what the deal is with code or pre tags, but in some recent showings of code, it appears to double space the code.

Posted on 2004-02-24 22:41:03

loretian

That's an issue with non-IE browsers (apparently). It's on the list to get fixed, but it's not a priority right now.

Posted on 2004-02-24 23:33:43

mcgrue

Well, more to the point it's a problem with how I handle the posts. I auto-insert
's for each newline, but that's really unneccesary in a pre-tag. IE ignores them, but the rest of the browsers don't. I just need someone to cook up a handy-dandy regexp to remove all br-tags within a pre-tag.

Posted on 2004-02-25 04:34:05

TomT64

I might just do that...

Posted on 2004-02-25 10:07:26

TomT64

....still can't edit my posts...

What php function(s) are you using to deal with expressions?

Posted on 2004-02-25 10:09:27

mcgrue

nl2br() is what adds the br's.

preg_replace() is what does various stripping stuff.

I just need a new preg_replace() to run the formatted string through that removes the <br />'s from within a pre-tag.

Posted on 2004-02-26 10:25:12

Raiden

Wouldn't str_replace work also?

Posted on 2004-03-05 01:07:13


Displaying 1-7 of 7 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.