Jump to content




Sublime 2 Plugin for Auto-Lua Syntax!


  • You cannot reply to this topic
3 replies to this topic

#1 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

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.

:)

#2 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 19 February 2013 - 08:58 PM

Great! :D Now we just need CC function highlighting/recognising.

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 19 February 2013 - 09:01 PM

View PostGravityScore, on 19 February 2013 - 08:58 PM, said:

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

#4 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 20 February 2013 - 06:44 PM

GravityScore beat me to it :(

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users