chunkysteveo / OctoPrintAPI

Library for use with Arduino compatible micro controllers (web enabled) to access the Octoprint API on Raspberry Pi's running the Octoprint 3D printer web server by the brilliant Gina Häußge, aka @foosel.
GNU General Public License v2.0
42 stars 24 forks source link

Use correct field separator in keywords.txt #5

Closed per1234 closed 6 years ago

per1234 commented 6 years ago

The Arduino IDE requires the use of a single true tab separator between the keyword name and identifier. When spaces are used rather than a true tab the keyword is not highlighted.

Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords

chunkysteveo commented 6 years ago

Thanks for the update. It is odd - I always use tabs to separate keywords, but GIT does not seem to see them as true tabs. Will copy what is present for any future updates.

per1234 commented 6 years ago

I'm glad if I've been helpful.

Git has no problem with my true tabs. Frequently I see this problem result from text editors being set to use spaces in place of tabs. I actually prefer that setting but in the specific case of keywords.txt it's problematic.

chunkysteveo commented 6 years ago

Ahh that's probably it - it will be using double space I think. Thanks!