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: Feature Request: Copy Code  (Read 12,494 times)

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Feature Request: Copy Code
« on: April 29, 2009, 09:20 AM »
Maybe it's been here around, this question but still:
Maybe at this code input thing, there could be a thing when you click it it selects all the code inside it?

Code
test

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Feature Request: Copy Code
« Reply #1 on: April 30, 2009, 05:23 PM »
+1 to this feature, useful if can select and copy the code as well..

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 174
Re: Feature Request: Copy Code Mouser please
« Reply #2 on: May 01, 2009, 10:44 PM »
I guess you Coeluh are after something like they have at the AHK forums where they have the option to expand the code input window to show the full text of a multilined code.
I actually thought they did have an option at one stage to copy that code to the clipboard at AHK but it may have been on another sites forum.

I don't think it would be impossible just to have an input window that has code to include the options to (a) expand-collapse (b)copy to clipboard

The initial posting would only show one or two lines of code to save message space.
The benefit would be when there are updates amendments to the code with repetitive showing the original then the amended it will not obtrusive to the non interested.

nogojoe
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy
« Last Edit: May 01, 2009, 10:47 PM by nogojoe »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Feature Request: Copy Code
« Reply #3 on: May 02, 2009, 01:51 AM »
good ideas.  how about 2 buttons at top of highlighted code.
1. copy all code to clipboard
2. expand code box to show entire code

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: Feature Request: Copy Code
« Reply #4 on: May 02, 2009, 02:14 AM »
good ideas.  how about 2 buttons at top of highlighted code.
1. copy all code to clipboard
2. expand code box to show entire code
Those would be a nice convenience!
Chris

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Feature Request: Copy Code
« Reply #5 on: May 02, 2009, 03:05 AM »
I guess you Coeluh are after something like they have at the AHK forums where they have the option to expand the code input window to show the full text of a multilined code.
I actually thought they did have an option at one stage to copy that code to the clipboard at AHK but it may have been on another sites forum.

it seems like they did had the 'copy code' feature but it wasn't working on all browsers (such as Firefox) and the idea is pretty useful. :up:

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 174
Re: Feature Request: Copy Code
« Reply #6 on: May 02, 2009, 03:19 AM »
I guess you Coeluh are after something like they have at the AHK forums where they have the option to expand the code input window to show the full text of a multilined code.
I actually thought they did have an option at one stage to copy that code to the clipboard at AHK but it may have been on another sites forum.

it seems like they did had the 'copy code' feature but it wasn't working on all browsers (such as Firefox) and the idea is pretty useful. :up:

I had the feeling it used to be there but I did a quick check before my original posting and to my surprise it wasn't there.

Thanks Mouser if you can implement those improvements I don't think the copy code feature will be much trouble here between browsers here as the AHK site is full on copy and re-posting code .
As long as you can implement it for Chrome I'll be happy :Thmbsup:
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: Feature Request: Copy Code
« Reply #7 on: May 02, 2009, 10:07 AM »
good ideas.  how about 2 buttons at top of highlighted code.
1. copy all code to clipboard
2. expand code box to show entire code
Sure that's cool. I bet there are tons of scripts for SMF, sure you can find one :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Feature Request: Copy Code
« Reply #8 on: May 02, 2009, 10:25 AM »
it seems like they did had the 'copy code' feature but it wasn't working on all browsers (such as Firefox) and the idea is pretty useful. :up:

Actually, it's not the browser type...the copy-to-clipboard feature on the AHK forums doesn't work with Flash 10.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Feature Request: Copy Code
« Reply #9 on: May 12, 2009, 05:10 AM »
this request is quite beneficial and it enhances the the forums' usefulness if it was to be implemented.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Feature Request: Copy Code
« Reply #10 on: May 25, 2009, 03:57 AM »
mostly implemented:
http://www.donationcoder.com/forum/index.php?topic=18458.0

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