Compiling error: error: stray '\' in program

Your long minuses, -, are becoming unicode and breaking stuff. Replace them with a normal dash/minus. This is what the compiler sees:

#line 1 "sketch_jun11a.ino"
// Which pins are connected to which LED
 #include "Arduino.h"
void setup();
void loop();
void loop();
#line 1
const byte greenLED = 8 ;
 const byte redLED = 10 ;

// Time periods of blinks in milliseconds (1000 milliseconds to a second).
 // Time variable and constants are always unsigned long
 const unsigned long greenLEDinterval = 555UL;
 const unsigned long redLEDinterval = 1234UL;

// Variable holding the timer value so far. One for each \u201cTimer\u201d
 unsigned long greenLEDtimer = 0 ;
 unsigned long redLEDtimer = 0 ;

// Variable to know what the current LED state is
 int greenLEDState = LOW ;
 int redLEDState = LOW ;

void setup() {
 pinMode (greenLED,OUTPUT) ;
 pinMode (redLED,OUTPUT) ;
 greenLEDtimer = millis () ;
 redLEDtimer = millis () ;
 }

void loop() {

if ((millis() \u2013 greenLEDtimer) gt= greenLEDinterval) {
 if (greenLEDState == LOW)
 greenLEDState = HIGH ;
 else
 greenLEDState = LOW ;
 // Write new state
 digitalWrite (greenLED, greenLEDState ) ;
 // Reset timer
 greenLEDtimer = millis () ;
 }

// The other LED is controlled the same way. Repeat for more LEDs
if ( (millis () \u2013 redLEDtimer) gt= redLEDinterval ) {
 if (redLEDState == LOW)
 redLEDState = HIGH ;
 else
 redLEDState = LOW ;
 digitalWrite (redLED, redLEDState ) ;
 redLEDtimer = millis () ;
 }