Including syntax highlighting and supply file assist for TypeScript to Xcode

Due to an earlier answer created by Steve Troughton-Smith for Lua, I used to be capable of hack a plug-in Xcode (sure, these nonetheless exist) 10.1.

The TypeScript repo is right here on github.

To put in, exit Xcode. Run so as to add xclangspec and ideplugin data to your ~ / Library / Developer / Xcode folders. Then run Xcode, agree to permit the plug-in to run, and add your ts recordsdata.

The File Inspector will all the time point out that these are MPEG-2 transport stream recordsdata, however it is possible for you to to see the textual content, the textual content can be formatted, and it is possible for you to to make use of Xcode to seek for content material within the recordsdata. Let me know if it really works for you.

The xcplugin and xclangspec instructions have been simple to assemble, as a result of I had simply understood the syntax of JavaScript. Different languages ​​would require a little bit extra work as a result of you could outline an inventory of key phrases and their guidelines for coloring characters and syntax, which can or could not lend itself to simple lexer assist. .