Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Copy / Paste code from posts

 
buckaroo
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I copy code from a post whether it is in a code block or not, then paste it in my editor it is all in one long line.
Has anyone else experienced this?
Is this normal?
Or is there a fix?

Using Scintila Text Editor Version 1.51-wbd-1 on a Windows XP machine.
Thanks
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's an HTML thing.
What I normally do is select "Reply with quote" on the post, then cut the code from the editor window.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I normally do is select "Reply with quote" on the post, then cut the code from the editor window.
Me too. Well, I really use the "edit post" key rather than "reply with quote", but same idea. Either way we don't actually submit the reply/changes, we just use the window to get a different view of the code, and grab a copy of that. One complication though is that when we do this, although line breaks and indentation have been preserved, all < and > have been replaced with &lt; and &gt;. It's necessary to go back and fix these. Fortunately your compiler will tell you about any you miss.
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that only sheriffs (and sometimes bartenders) can do the "edit" thing nowadays.
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guess you're right. Pity. Well, the warning about &lt; &gt; is still valid at least.
 
    Bookmark Topic Watch Topic
  • New Topic