Uploading Marlin 1.1.9 to my Anet A8 using Arduino 1.8.6. I get this error

Uploading Marlin 1.1.9 to my Anet A8 using Arduino 1.8.6. I get this error :- "/* SPI Master In Slave Out pin*/" and "_DDR" does not give a valid preprocessing token.
I first copy and paste the 'anet-board-master' - 'anet' folder in to the Arduino hardware folder. As all the info tell you to do. Next I open Marlin folder and copy from the 'example_configurations' folder the Anet A8 Configuration.h and the Configuration_adv.h flies to the Marlin folder. Then check that 'Anet V1.0' is set and the right port is set. Now I Verify, and I get the error "/* SPI Master In Slave Out pin*/" and "_DDR" does not give a valid preprocessing token. Or the error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."

:frowning: >:(

This is a known bug in Arduino IDE 1.8.6:

Please use Arduino IDE 1.8.5.

I have tried 1.8.5. and I get the same error

Which one?

The Arduino IDE 1.8.6 bug I mentioned is related to the first error you encountered:

TheEmit:
Uploading Marlin 1.1.9 to my Anet A8 using Arduino 1.8.6. I get this error :- "/* SPI Master In Slave Out pin*/" and "_DDR" does not give a valid preprocessing token.