You can do this (preferred):
<!-- language-all: lang-arduino -->
or this:
<!-- language-all: lang-cpp -->
to the top of every question or answer to set syntax highlighting for that entire question or answer, or this just for the code block that follows:
Code block 1:
<!-- language: lang-arduino -->
void setup()
{
Serial.begin(115200);
// some more code
}
Code block 2:
<!-- language: lang-bash -->
# random examples
arduino-cli help core
grep 'some regular expression' /some/file
but shouldn't this be turned on by default for the entire Arduino Stack Exchange instead?
Samples:
Here's what the above 2 code blocks look like, just for demonstration purposes:
Code block 1:
void setup()
{
Serial.begin(115200);
// some more code
}
Code block 2:
# random examples
arduino-cli help core
grep 'some regular expression' /some/file