I copied the code to the program file and still got syntax errors.

#CONFIG
__config _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
#ENDCONFIG

I am using MicroCode Studio Pro to complile the program and PICKIT2 for programming.
Thanks
Dave