iamtawinan / lolshield

Automatically exported from code.google.com/p/lolshield
0 stars 0 forks source link

Add keywords.txt files to allow Arduino IDE to highlight library keywords #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Library keywords don't appear highlighted in the Arduino IDE.  Adding a
keywords.txt file should correct this.

From: http://arduino.cc/en/Hacking/LibraryTutorial

If you tried the new sketch, you probably noticed that nothing from our
library was recognized by the environment and highlighted in color.
Unfortunately, the Arduino software can't automatically figure out what
you've define in your library (though it would be a nice feature to have),
so you have to give it a little help. To do this, create a file called
keywords.txt in the Morse directory. It should look like this:

Morse   KEYWORD1
dash    KEYWORD2
dot KEYWORD2

Each line has the name of the keyword, followed by a tab (not spaces),
followed by the kind of keyword. Classes should be KEYWORD1 and are colored
orange; functions should be KEYWORD2 and will be brown. You'll have to
restart the Arduino environment to get it to recognize the new keywords. 

Original issue reported on code.google.com by Matt.M...@gmail.com on 28 May 2010 at 6:32

GoogleCodeExporter commented 8 years ago

Original comment by Matt.M...@gmail.com on 28 May 2010 at 6:33

GoogleCodeExporter commented 8 years ago
Added keywords file:
http://code.google.com/p/lolshield/source/browse/trunk/lib/keywords.txt

Original comment by Matt.M...@gmail.com on 28 May 2010 at 7:27