Skip to content

Commit b8623a4

Browse files
committed
(Mac OSX) Improve Quick look and syntax highlighting under OSX
An exported UTI declaration means that the type is available for use by all other parties. By adding an this declaration for ino files, it allows Quick Look to display file content and external editors (like Xcode) to automatically syntax highlight .ino files as C++
1 parent b4f2af4 commit b8623a4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

build/macosx/template.app/Contents/Info.plist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,24 @@
5858
<string>Editor</string>
5959
</dict>
6060
</array>
61+
<key>UTExportedTypeDeclarations</key>
62+
<array>
63+
<dict>
64+
<key>UTTypeConformsTo</key>
65+
<array>
66+
<string>public.c-plus-plus-source</string>
67+
</array>
68+
<key>UTTypeIdentifier</key>
69+
<string>cc.arduino.Arduino.source</string>
70+
<key>UTTypeTagSpecification</key>
71+
<dict>
72+
<key>public.filename-extension</key>
73+
<array>
74+
<string>ino</string>
75+
</array>
76+
</dict>
77+
</dict>
78+
</array>
6179
<key>Java</key>
6280
<dict>
6381
<key>VMOptions</key>

build/shared/revisions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARDUINO 1.5.9
55
* Sketch build process: fixed full rebuild on windows even if not needed
66
* Sketch build process: core.a rebuild only if needed (Matthijs Kooijman)
77
* Updated AStyle formatter to v2.04: http://astyle.sourceforge.net/notes.html
8+
* (Mac OSX) Add Exported UTI for ino files, allows quick look to view the content of the file and external editors to syntax highlight as C++ (Matt Lloyd)
89

910
[core]
1011
* sam: added -MMD flag to let gcc produce dependency files (full rebuild on Arduino Due is now triggered only if needed)

0 commit comments

Comments
 (0)