When I try to post code using code tags, the output does not have the normal colours, but is entirely monochrome.
int beats;
void setup()
{
Serial.begin(19200);
// from 'Tools' choose "Serial Plotter" (NOT Serial Monitor)
// and make sure the baud/bps match
}
void loop()
{
beats = analogRead(A0);
Serial.println(beats);
delay(10); // try faster -- or no delay
}
Does anyone know why?
Is there a setting I have inadvertently changed?
It has only started doing this today.
int beats;
void setup()
{
Serial.begin(19200);
// from 'Tools' choose "Serial Plotter" (NOT Serial Monitor)
// and make sure the baud/bps match
}
void loop()
{
beats = analogRead(A0);
Serial.println(beats);
delay(10); // try faster -- or no delay
}
How are you copy/pasting the code from the IDE and which version of the IDE are you using ?
In order for the forum to recognise some keywords and colour them it need to know what programming language you are using, hence my question about how you were copy/pasting the code
I suspected that that would become a problem after the change but could not properly test it yet. Also. if you copy/quote a piece of a post, the forum does not seem to maintain to language option of the code tags.
I never suggested that it was a problem with the IDE, apart from the fact that IDE 1.x does not add the language specifier when doing "Copy for Forum" whereas ID 2 does