PC Nerd Posted December 31, 2008 Share Posted December 31, 2008 Hi, When I go to new topic, anythign in my code tage becomes one long string, ignoring indenting and a 50 line entry becomes about 3 lines of unrecognisable rubish ( unindented code... urgh!). When I moved over to firefox ( my usual browser), it worked fine again. I noticed that someone else was having issues with IE8 beta (http://www.phpfreaks.com/forums/index.php/topic,228138.0.html), but it seemed slightly different since chrome isnt in beta... is it? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/ Share on other sites More sharing options...
ober Posted December 31, 2008 Share Posted December 31, 2008 This is an issue for SMF. We won't be fixing it. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-726933 Share on other sites More sharing options...
gevans Posted December 31, 2008 Share Posted December 31, 2008 As I'm sure you're aware Chrome is in a beta stage and IE8 is still in a development beta stage. They're pretty much telling you we're testing and things might not work. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-726937 Share on other sites More sharing options...
Daniel0 Posted January 1, 2009 Share Posted January 1, 2009 As I'm sure you're aware Chrome is in a beta stage [...] Chrome is not beta. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727403 Share on other sites More sharing options...
PC Nerd Posted January 1, 2009 Author Share Posted January 1, 2009 being the idiot i am, I didnt actually check if it was beta: Im running 1.0.154.36, which is not beta..... Also, I understand that chtome uses the same rendering engine as safari, so are there any safari users that can let us know if their code tags display properly? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727408 Share on other sites More sharing options...
Daniel0 Posted January 1, 2009 Share Posted January 1, 2009 It works fine for me in Chrome. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727410 Share on other sites More sharing options...
PC Nerd Posted January 1, 2009 Author Share Posted January 1, 2009 Hmmm ok.... Ill try and screenshot* im using hte following code as a demo <?phpif($condition) { echo "String";}?> ok.... that code being used, was directly copied across from notepad ( and notpad++ for testing).... and was using tabs as indents. the php tags were on new lines, and the output looks like: [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727414 Share on other sites More sharing options...
Daniel0 Posted January 1, 2009 Share Posted January 1, 2009 Uhm... you're posting it without newlines... Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727428 Share on other sites More sharing options...
PC Nerd Posted January 1, 2009 Author Share Posted January 1, 2009 Thats what im saying. Even if ive manually entered it into this field ( like I just did now) - its stripping and/or ignoring newlines. how then can I post the newlines with code? Thanks *edit: jsut reviewed the png, and thats a screenshot of "preview" on the code. if you want Ill screenshot how i enter the code. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727433 Share on other sites More sharing options...
Daniel0 Posted January 1, 2009 Share Posted January 1, 2009 I cannot reproduce that using Chrome. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727441 Share on other sites More sharing options...
PC Nerd Posted January 1, 2009 Author Share Posted January 1, 2009 <?php if($condition) { echo "string";}?> Ok, well I selected some code from here ( that displayed correctly) by using the select link and pasted it into a new field. then placed code tags around it... pressed preview .. it worked. Then I tried to write my own code... and It ented up like above Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727442 Share on other sites More sharing options...
Daniel0 Posted January 1, 2009 Share Posted January 1, 2009 Either it's a bug in SMF or Chrome then. Quote Link to comment https://forums.phpfreaks.com/topic/138961-chrome-not-displaying-code-tags-correctly/#findComment-727462 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.