How about making the Tools->Copy For forum exporting code in a Linked Data (TED Talks) matter?
Actually maybe make all references more 'linked'
I made an example using a slightly modified Loop sketch:
/*
- Loop
- by David A. Mellis
- Lights multiple LEDs in sequence, then in reverse. Demonstrates
- the use of a for loop and arrays.
- http://www.arduino.cc/en/Tutorial/[Loop](http://www.arduino.cc/en/Tutorial/Loop)
*/#define num_pins 6 // the number of pins (i.e. the length of the array)
int timer = 100; // The higher the number, the slower the timing.
byte pins[] = { 2, 3, 4, 5, 6, 7 };// an array of pin numbersvoid setup()
{
for (byte i = 0; i < num_pins; i++) // the array elements are numbered from 0 to num_pins - 1
pinMode(pins*, OUTPUT); // set each pin as an output*
}
void loop()
{
- for (byte i = 0; i < num_pins; i++) { // loop through each pin...*
_ digitalWrite(pins*, HIGH); // turning it on,_
_ delay(timer); // pausing,_
_ digitalWrite(pins, LOW); // and turning it off.
}_
for (byte i = num_pins - 1; i >= 0; i--) {
_ digitalWrite(pins, HIGH);
delay(timer);
digitalWrite(pins, LOW);
}
}
[/quote]
I've made an applet that inserts links automatically:_
Linked Data Sketch Creator*