Programming

I have just started my first program. All going well until I used the 'for' command.
It did not turn orange or get recognized ?
Any ideas?

Any ideas?

The command colouring in the IDE is notoriously flakey. The colour of the text makes no difference to the editor or the compiler.

Advice : ignore the colour or lack of it.

Does the code compile and does the for loop work ?

Actually, it was never intended that for be colored orange:

#FUNCTIONS COLOR 			#D35400 - ORANGE			KEYWORD1
#FUNCTIONS COLOR			#D35400 - ORANGE			KEYWORD2
#STRUCTURE COLORS			#728E00 - GREEN			KEYWORD3
for KEYWORD3 For RESERVED_WORD

It's a subtle color difference, but if you look closely you will see that for does indeed have a different color from regular text.

I'm not aware of any flakeyness to keyword coloring in the Arduino IDE but certainly it's a crude system since there's no attempt to use context of the code so you get coloration for keywords from libraries that you aren't even using in the sketch.

Birdyspecial:
Any ideas?

Please read this:-
How to use this forum and then post your code in the way it tells you to.

What Grumpy_Mike says - read the instructions to see how to post your code in a [CODE] block fso we can see it properly. Don't just post it inline with your reply - that can mess up some formatting that may bear on your problem.

In the meantime, try deleting the line(s) your problem is on, and retyping it from scratch.