This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
NeverCast's profile picture

Sublime 2 Plugin for Auto-Lua Syntax!

Started by NeverCast, 19 February 2013 - 06:20 PM
NeverCast #1
Posted 19 February 2013 - 07:20 PM
Heya, I've started using Sublime 2 for my Dev'. One thing I noticed is that it does not highlight CC Lua files with Lua color because they've no extension.

This plugin fixes that, It defaults your syntax when you create or load a file to what you specify in the config.

I've defaulted this setting to Lua. But if you did some sort of other development in Sublime with another language that had no extension. You could use this for that also.

Files:
plugin: http://pastebin.com/sgPzXCfb
config: http://pastebin.com/Tnjr0mGc
download for both: Here

Installation:
Go to Preferences -> Browse Packages and paste the folder inside the zip there. Else create a folder called DefaultPackages and put the two files in there as defaultsyntax.py and defaultsyntax.sublime-settings.

:)/>
GravityScore #2
Posted 19 February 2013 - 08:58 PM
Great! :D/> Now we just need CC function highlighting/recognising.
theoriginalbit #3
Posted 19 February 2013 - 09:01 PM
Great! :D/> Now we just need CC function highlighting/recognising.
And more Lua detection. I call for new Syntax package 'ComputerCraft'. K go NC. :P/>
NeverCast #4
Posted 20 February 2013 - 06:44 PM
GravityScore beat me to it :(/>

HOWEVER!! You can see his great project, le here