DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Request: Copy Code To Clipboard  (Read 7,374 times)

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Request: Copy Code To Clipboard
« on: February 29, 2008, 04:54 PM »
It would be nice to have a link to copy the code in a [code][/code] as ascii text to the clipboard.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Request: Copy Code To Clipboard
« Reply #1 on: March 17, 2008, 03:52 PM »
i'd second this. the AHK forums have a similar feature to copy code and it is very helpful, especially for long lines of code..

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Request: Copy Code To Clipboard
« Reply #2 on: March 17, 2008, 04:26 PM »
What, you actually mind stripping the linenumbers and fixing tabs manually? ;P
- carpe noctem

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: Request: Copy Code To Clipboard
« Reply #3 on: March 17, 2008, 04:35 PM »
I forget where I saw it, but one forum had a neat bit of code that switched between code formatted for reading and code formatted for C&Ping. You would view it for reading, with line numbers, and clicking a button would change it to copyable code and select all so you could just <Ctrl> + C for the copy.

Original address: https://www.donationcoder.com/forum/index.php?topic=12537.0