topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 3:21 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Request: Copy Code To Clipboard  (Read 6183 times)

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Request: Copy Code To Clipboard
« on: February 29, 2008, 10:54 AM »
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
    • View Profile
    • Donate to Member
Re: Request: Copy Code To Clipboard
« Reply #1 on: March 17, 2008, 10:52 AM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Request: Copy Code To Clipboard
« Reply #2 on: March 17, 2008, 11:26 AM »
What, you actually mind stripping the linenumbers and fixing tabs manually? ;P
- carpe noctem

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Request: Copy Code To Clipboard
« Reply #3 on: March 17, 2008, 11:35 AM »
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.