Why can i copy code from "Learning" under "Fading"

on the Arduino home page, i used to be able to copy code right off the learning page. it just made it ezer then typing it all out. Now i went to Fading and some others and it will not let me copy it. BUT some will like "Knob" and some others. So can some one tell me why??? or em i missing something? and yes i know i can just go on line or google code and get it but i just want to know why this is not working for me. Thank you for your time.

I'm not sure why you can't copy it, but I can say that most or all of the code on the homepage I've found in the Arduino programming environment under File-> Examples.

That's what I've been doing, though I do agree that it would be great if we could just copy and paste.

Hope that helps, I'm pretty new myself so if I'm wrong, just ignore me.

Some pages use a technique so that the code will scroll in its own area instead of taking up lot and lots of space on the page. There is a visual cue with the vertical scroll bar to the right of the code on those pages.

To copy code from pages that use this technique, you have a few options:

  • Right-click on a line of code, and select "This Frame > Show only this frame". You can then select and copy whatever you want from the code. This works in Firefox, YMMV in other browsers.- Right-click on a line of code, and choose "Select All". You can then copy all the code. This also works in Firefox, YMMV in other browsers.- Click somewhere in the code area and drag the mouse to select as much code as you want, including all of it. You can then copy what you have selected.- Click the mouse somewhere on a line of code, then press [Ctrl-A] to select all the code at once. You can then copy the selected code.
    Using the technique is a choice of the person who created the page. I agree it can be confusing if you are not experienced with it.