ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

how to copy code formatted text on this forum? i must be doing something wrong.

(1/1)

nudone:
i was trying to copy an ahk script that czb created and posted on the forum here (4th post down): https://www.donationcoder.com/forum/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?

mouser:
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.

app103:
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)

nudone:
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.
-mouser (June 05, 2009, 06:52 AM)
--- End quote ---
you're right. sorry, i never thought to check browsers. i'll try and figure out why maxthon isn't working with it.

Navigation

[0] Message Index

Go to full version