I have an SQL code in my post - now it's absolutely unreadable
The same applies to viewtopic.php?f=50&t=113253 - even PHP blocks are a mess.
Moderator: General Moderators
Code: Select all
tags are assigned their own unique ID's, which seems pointless to me.Blah, they are not so well-formatted - the new lines are missing.VladSun wrote:Hm, when I try to edit my old posts they are still "well-formated" - i.e. it's a plain text surrounded with [ php ] BBtags
Code: Select all
tags, [code=php ], [code=sql ], etc... Were there other ways to do code blocks?
[syntax=php]echo "Testing old [ code=php ] way"; [/syntax]AbraCadaver wrote:Were there other ways to do code blocks?
Code: Select all
, [sql]Code: Select all
[syntax=php]orCode: Select all
Exactly, For every post that someone made sticky there were 1,000 other that individual people had bookmarked, taken time to write as "notes to themselves", etc.. All gone.minorDemocritus wrote:I think the most problematic instance of this is in the Tutorials, as well as the stickies and guidelines. Some of the tutorials seem VERY helpful, but alas, the code blocks are broken!
Exactly. 1 line of code to run old posts thru html_entity_decode http://www.php.net/manual/en/function.h ... decode.php (or bypass whatever is escaping it in the first place).I noticed that if you quote one of these problem posts, the editor doesn't keep the HTML mess, it just shows what (I assume) the original contents of the code block is, inside the bbcode tags. So, it should be pretty simple to replace: