Hello Rahul, I saw in one of your post that you insisted on using the tags I wished to bring one of inconvience on using that. see it this way.. in this post Gaurav has not used the tags and Peter Tran has http://www.javaranch.com/ubb/Forum24/HTML/007948.html Now When I copy the the GAuravs post in clipboard and paste it in notepad for saving and compiling on my machine the code is properly formatted. However with Peter's code (using the tags )needs special effort to format it especially when there is // thing anywhere in middle of the code. you see it becomes mandatory that I must format all the code in my Notepad again.. I hope I am not the "only" one facing this problem. Now Rahul,Am I missing something ..on how to copy paste the code in the javaranch pages... Please enlighten me if I am missing somehting of relevence or do not encourage the use of code tags I hope I am clear in my explanation Sunil
"Learning is weightless, a treasure you can always carry easily." -Chinese Proverb
Rather than cutting and pasting directly to notepad, try the following: for the post you want to grab code from, select the Edit/Delete icon. Now, unless the post is your own, you will not actually be able to re-edit or delete the post, because you don't have the password. However, that isn't checked until later, if you press "Submit" - which you're not going to do. Instead, you will get an Edit/Delete screen which has the text of the post loaded into an edit box. Here you can select the text you want, and then copy and paste it into a real editor - or Notepad if you prefer. And this way you should be able to maintain the formatting of the original post. Then just use the "Back" key on your browser to leave the JavaRanch "editor" and go back to the regular ranch. Try it out, it really does work.