• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An issue with specified 'code'

 
Jasper Vader
Ranch Hand
Posts: 284
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i try to copy and paste code from this cool place called Javaranch forums, to test things for myself, i encounter a strange phenomena with text that has been marked "code" ... it does not copy the returns in, so when i paste it into TextPad, it just appears as one long line... is there a way around this?
 
Jasper Vader
Ranch Hand
Posts: 284
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually i just thought of a way around it.. click on the 'quote' button, then copy the code itself within that box that comes up...pastes fine after that.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly what I was going to suggest.
 
Sridhar Srikanthan
Ranch Hand
Posts: 366
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I usually copy it into Word and copy it back into my editor from there
Your suggestion is also good.
Thanks
Sri
 
Jasper Vader
Ranch Hand
Posts: 284
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nice idea Sri, i had assumed that TextPad would have the same capability as Word, but obviously not, so i must try this technique.
btw - TextPad is really cool, it puts automatic formating as you type java code(if the file is saved first as something.java).
 
Jasper Vader
Ranch Hand
Posts: 284
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marilyn de Queiroz:
Exactly what I was going to suggest.


noway - i must have somehow plugged directly into the JavaRanch Collective Code Conciousness Library while posting the topic!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic