Jump to content

Archived

This topic is now archived and is closed to further replies.

tomfmason

preview a little buggy?

Recommended Posts

I just tried to preview a large post and it displayed the escape cartures. It is like it is displaying the results from preg_replace or something.

[b]Edit[/b]
When I tried to post what I copied from the preview, it showed just fine in this post.

??
Thanks,
Tom

Share this post


Link to post
Share on other sites
Also, everytime I submit a post with several if's it gets knocked ascew. I always spend about ten minutes fixing them. Here is an example [url=http://www.phpfreaks.com/forums/index.php/topic,102837.msg408858.html#msg408858]http://www.phpfreaks.com/forums/index.php/topic,102837.msg408858.html#msg408858[/url]

Share this post


Link to post
Share on other sites
As far as the first one, I get some of the same issues when I try to do a quick edit.  If I do a full edit, it works fine, and saving it like that seems to work ok as well.

As far as the second issue, it may help if you use the actual bb code blocks instead of just using the <?php ?> wrappers.

Share this post


Link to post
Share on other sites
The color codeing in the code tags only works if I use <?php and ?> other wise they are plain text. So I guess I will use the code tags for full script posts and the php tags for partials.

Thanks for the help,
Tom

Share this post


Link to post
Share on other sites
You can use the <?php ?> inside the code blocks... so I guess I'm not sure what the problem is.

[code]
<?php
echo "test";
?>
[/code]

Share this post


Link to post
Share on other sites
what I meant is when I post a fix for someones code say

[code]echo "whatever";[/code]

it is plain text so what I will do is use the code blocks for code with <?php ?> and use the php blocks for code with out the <?php ?>
[code=php:0]echo "whatever";[/code]

Sorry for the mixup,
Tom

Share this post


Link to post
Share on other sites
Ok, just wanted to make sure we were clear.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.