| Summary: | Get C syntax coloring for .ino files | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mike Milinkovich <mike.milinkovich> |
| Component: | Editor | Assignee: | Grant Gayed <grant_gayed> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | contact, ken_walker |
| Version: | 5.0 | ||
| Target Milestone: | 6.0 M1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Mike Milinkovich
Are those file actually "C" code or "C" like? We can add it in by default to Orion with our own syntax colouring. Yes, the contents of a .ino file is C. From the Arduino FAQ (http://arduino.cc/en/Main/FAQ) Can I program the Arduino board in C? In fact, you already are; the Arduino language is merely a set of C/C++ functions that can be called from your code. Your sketch undergoes minor changes (e.g. automatic generation of function prototypes) and then is passed directly to a C/C++ compiler (avr-g++). All standard C and C++ constructs supported by avr-g++ should work in Arduino. For more details, see the page on the Arduino build process. I just submitted a PR to the orion-codemirror project to add .ino to the list of supported C-like extensions. Mike, just help yourself and install the patched plugin if you want :) http://benjamin-cabe.com/orion-codemirror/codeMirrorPlugin.html Benjamin - works perfectly. Thanks! Fixed > 20140403 with the Orion >= 5.0 syntax styling, commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=79150b678bf65a103931dad780067a9ef451cd39 . (also styles .c, .h and .cpp) Additional commit related to this: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=fd959b4a518840789f502d8dd4252e00e679b942 . |