Welcome Guest.   Make a donation to an author on the site September 02, 2014, 11:40:58 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: how to copy code formatted text on this forum? i must be doing something wrong.  (Read 2135 times)
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: June 05, 2009, 06:47:14 AM »

i was trying to copy an ahk script that czb created and posted on the forum here (4th post down): http://www.donationcoder....m/index.php?topic=12935.0

that is, copy and then paste it into blank document. but no matter which editor i use to paste the code into, it does it as one long single line rather than the formatting seen in the code box. (it doesn't make any difference about the settings of word wrap in the editor - the formatting is still wrong.) clicking on the "copy or print" link above the code box doesn't retain the formatting either when copying from the new page that opens.

i've solved the problem by "quoting" the code box in a reply post preview and then simply copying the script from there - this provides the correct formatting when pasting into a blank document.

this seems a strange process, so i'm assuming i'm doing something wrong. surely, you can copy from the code boxes and the formatting stays intact?

Logged
mouser
First Author
Administrator
*****
Posts: 33,295



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: June 05, 2009, 06:52:17 AM »

if i press the "copy or print" link it shows a new window which i can copy out of perfectly.

try:
1. using a different browser
2. pasting into a different text editor.
Logged
app103
That scary taskbar girl
Global Moderator
*****
Posts: 5,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: June 05, 2009, 07:01:18 AM »

I have had similar problems in the past, but usually only with stuff I have copied & pasted from a web page into Notepad2, saved, and later tried to open in Windows Notepad. All the line breaks get converted into little squares and it's all on a single line, although if opened in Notepad2 it looks normal. (this doesn't happen all the time, though)
Logged

nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: June 05, 2009, 09:29:03 AM »

if i press the "copy or print" link it shows a new window which i can copy out of perfectly.

try:
1. using a different browser
2. pasting into a different text editor.
you're right. sorry, i never thought to check browsers. i'll try and figure out why maxthon isn't working with it.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.043s | Server load: 0.1 ]