stijn0713 Posted January 15, 2013 Share Posted January 15, 2013 not a critique but how can i copy paste the code from this forum onto notepad and have a proper intending ? especially the case when the code was put between the CODE tags thanks Quote Link to comment Share on other sites More sharing options...
ignace Posted January 15, 2013 Share Posted January 15, 2013 http://www.prettyprinter.de/ - could do what you want. If not, search for "php formatter". Quote Link to comment Share on other sites More sharing options...
Christian F. Posted January 16, 2013 Share Posted January 16, 2013 There are also a number of PHP editor that has built-in code formatting. I'm using Zend Studio, which allows me to define my own styles, and can apply them on a per-project basis. Though I don't remember the names of others, I do know that they are out there. Quote Link to comment Share on other sites More sharing options...
stijn0713 Posted January 16, 2013 Author Share Posted January 16, 2013 ok, will have a look at it. thanks for the comments. Anyhow: is there no possibility to preserve the original format with those code tags , you phpfreaks ? Quote Link to comment Share on other sites More sharing options...
Philip Posted January 16, 2013 Share Posted January 16, 2013 In the next version of the forum software, this shouldn't be an issue anymore. Quote Link to comment Share on other sites More sharing options...
kicken Posted January 16, 2013 Share Posted January 16, 2013 If the original post's code is properly indented, then it should copy into your editor indented as well (works fine for me anyway). If the original post is not indented however, you'll need to use one of the re-formatting methods mentioned to fix it up (or just do it yourself). Unfortunately the editor used for posting is buggy and often removes all indentation from code when people paste it. Quote Link to comment Share on other sites More sharing options...
Christian F. Posted January 17, 2013 Share Posted January 17, 2013 There's a couple of other things I would really love to see, how that I've had time to think about this. First of all is a standard input form for the quick reply, not a JS-generated one. Having a dynamically created form defeats one of the nicest features of Opera, and that is the fact that it retains the form values in the history. So if I'm unfortunate to navigate away from the page, while writing a reply, I do not lose what I've already written. Or at least, I would have, if the input element wasn't dynamically created. Lost quite a few replies this way. The second thing is a proper tabindex order for the quick-edit form elements. Currently hitting TAB while editing a post will not bring you to the submit-button, like it does with the other forms, but rather to the "Quick reply" textarea. Slightly annoying, but nothing too major. Quote Link to comment Share on other sites More sharing options...
Philip Posted January 17, 2013 Share Posted January 17, 2013 First of all is a standard input form for the quick reply, not a JS-generated one. Having a dynamically created form defeats one of the nicest features of Opera, and that is the fact that it retains the form values in the history. Unlikely to happen So if I'm unfortunate to navigate away from the page, while writing a reply, I do not lose what I've already written. We'll be bumping up the auto-save time quite a bit, as well as the check for new replies timer. Each are currently set to 2min (ridiculous), while we'll likely have it at 15-30sec. The second thing is a proper tabindex order for the quick-edit form elements. Currently hitting TAB while editing a post will not bring you to the submit-button, like it does with the other forms, but rather to the "Quick reply" textarea. Slightly annoying, but nothing too major. Yeah, I've had this too and we'll likely be tweaking parts as we go. Quote Link to comment 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.