I am new to Arduino.
I am using IDE 2.0.3 on my pc and also using Arduino Editor
On the PC when I put parameters within () it doesn't turn blue.
In Editor it does.
Are there preferences I need to turn ON?
Spelling and capitals are the same in both.
Hello @paymentupfront - The Editor (IDE) looks for keywords, and turns them blue or red. Your PC does not look for keywords to change text color unless you run Linux, or a configured session in Windows.
No. The only thing that matters is what the compiler thinks about your code. The syntax highlighting is useful, but not relevant from a technical standpoint.
Arduino IDE 2.x has a completely different keyword highlighting system compared to Arduino Web Editor and Arduino IDE 1.x. Arduino IDE 2.x's highlighting uses a system that is actually far more sophisticated than the old system in that it actually has more of an understanding of the C++ language the Arduino programming language is based on than the primitive old system which is prone to highlighting keywords inappropriately. But the new system does not support the definition of custom keywords that was possible with the old system.
If you look closely, you will see that the integer literal 13 is colored a dark teal.
As for OUTPUT, you are right it is not highlighted. The lack of highlighting in this case and other standardized Arduino API keywords is tracked by the Arduino IDE developers here:
Since the highlighting system is not maintained by Arduino , it is not clear whether it will be possible to resolve that issue so my advice is to not worry so much about the color of things in Arduino IDE or Arduino Web Editor and get back to having fun with Arduino!