Copied from Arduino course second edition.
//Type your code into your Arduino "exactly" as you see here.
//Don't worry about What the program does - this is about practicing the syntax.
//This is a single row comment. What color is the text?
// Will the compiler these comments?
/*
This is a multi-line comment.
Will the compiler see these words?
Are these multi-line comments colored different than the single line comments.
/*
string dog; //Which of these words is a keyword? How do you know?
*/
//Setup only runs once.
//void setup(){ //notice that this setup() has a different color.
//Comments are meant to explain your code to you and othr people.
//Setup serial Communication.
Serial.begin (9600);//This is the color of the library function.
}//this curly bracket "closes" the setup function.// Put your main code here to run repeatedly;
void loop() { // This curly bracket opens the loop() function.
//Assign a bark to the dog.
dog = "bark";
//Send the bark to the computer.
Serial.printin(dog);
//Upload this code to the Arduino (CONTROL + U) and open the Serial Monitor Window (SHIFT + CONTROL + M)
} //This curly bracket closes the loop() function.
Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Uno"
sketch_oct28a:20: error: 'Serial' does not name a type
Serial.begin (9600);//This is the color of the library function.
sketch_oct28a:22: error: expected declaration before '}' token
}//this curly bracket "closes" the setup function.// Put your main code here to run repeatedly;
exit status 1
'Serial' does not name a type
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.