compile error Arduino: include expects "FILENAME OR <FILENAME>

hi could someone have a look at this code and tell me why in getting this error i have tried adding <> and "" but still same error

#include &amp;lt;LiquidCrystal.h&amp;gt;
//#include &amp;lt;LCDKeypad.h&amp;gt;
LiquidCrystal lcd( 8, 9, 4, 5, 6, 7 ); //Pins used by LCD
// Globals
int adc_key_val[5] ={50, 200, 400, 600, 800 }; // These are the values returned by the adc for different button presses
int NUM_KEYS = 5;
int adc_key_in;
int key=-1;
int oldkey=-1;
int jog_speed;
int rail_direction = 0;
//Pins that will be used to control the rail and the camera
int dir_pin = 11; // 10 clashes with backlight pin! Solution is probably to move camer_pin to another output..
int drive_pin = 12;
int enable_pin = 13;
int camera_pin = 15;
int flash_pin = 16;
int number_photos =0;
int distance = 0;
int delay_time = 0;
int k = 0;
int keep[4] ={0,0,0,0}; // Only really need four members to array because not using 0th member!

//
//
// This runs once and sets up the display, signs on, gives basic info etc.
//
//
void setup()

{
i could only post part of it but its the #include &amp;lt;LiquidCrystal.h&amp;gt; if i delete the &amp bits the compiler says i have a stray # can anyone help please

Looks like you've got some web page encoding going on there.
Try this:

#include <LiquidCrystal.h>

If that doesn't work, post your code again - in code tags please.

The stray character issue can be solved by pasting the full code in the reply window here on the forum, next copy it from the reply window and paste it over the code in the IDE.

You don't have to post for above to work.

That solution may work with individual weird characters but I don't think that it will work with "&".

I said "The stray character issue" :wink:

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"

i tried copying and pasting back getting the same error this is the full error message

sketch_jul26b:3:10: error: #include expects "FILENAME" or

#include &amp;lt;LiquidCrystal.h&amp;gt;

^

exit status 1

#include expects "FILENAME" or

if i try just using #include <LiquidCrystal.h> i get

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"

sketch_jul26b:403:32: error: stray '#' in program

lcd.print(&amp;quot;Photo #: 1 &amp;quot;);

^

sketch_jul26b:426:32: error: stray '#' in program

lcd.print(&amp;quot;Photo #: &amp;quot;);

^

C:\Users\darre\Documents\Arduino\sketch_jul26b\sketch_jul26b.ino: In function 'void setup()':

sketch_jul26b:40:13: error: 'amp' was not declared in this scope

lcd.print(&amp;quot; MadBoffin Labs &amp;quot;);

^~~

sketch_jul26b:40:21: error: 'quot' was not declared in this scope

lcd.print(&amp;quot; MadBoffin Labs &amp;quot;);

^~~~

C:\Users\darre\Documents\Arduino\sketch_jul26b\sketch_jul26b.ino:40:21: note: suggested alternative: 'qsort'

lcd.print(&amp;quot; MadBoffin Labs &amp;quot;);

^~~~

qsort

sketch_jul26b:40:27: error: 'MadBoffin' was not declared in this scope

lcd.print(&amp;quot; MadBoffin Labs &amp;quot;);

^~~~~~~~~

sketch_jul26b:40:56: error: expected primary-expression before ')' token

lcd.print(&amp;quot; MadBoffin Labs &amp;quot;);

^

sketch_jul26b:42:27: error: unable to find numeric literal operator 'operator""th'

lcd.print(&amp;quot; 5th Oct 2014 &amp;quot;);

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

#include <LiquidCrystal.h>

Please post a link to the web page from which you have copied the code.

...R

Using Edit > Search in the IDE, replace all the following:

&amp;quot; with "

&amp;lt; with <

&amp;gt; with >

darrengreaves:
An Arduino-Controlled Focus Rail | petermobbs

Here is the code that drives the rail (thanks to David M for pointing out how to properly post Arduino code on WordPress!):

Oh. The irony.

David_2018 you are a genius thank you so much