Jump to content

LSL syntax highlighting in Sublime Text 2


Duckie Dickins
 Share

You are about to reply to a thread that has been inactive for 3511 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I'm a pretty avid scripter, having worked for quite awhile developing in the combat meter field and I have always been on the look out for a good editor. I have tried several editors and had always ended up falling back to LSLEditor.


I got involved using sublime text 2 for work projects. It's a rather powerful editor you can do pretty much anything with and if a feature isn't available, you can pretty much code it yourself into the editor as a plugin. Well I came to discover someone ported LSL syntax highlighting from the Textmate LSL bundle and now Sublime Text is yet another alternative LSL scripting editor which can be used.


You can find out more about Sublime Text 2 here: http://www.sublimetext.com

And how to install the add-on for LSL syntax highlighting can be found here https://github.com/JKolya/sublime-text-2-lsl

I have no vested interest in sublime text. I'm just a fan, and now I'm an even bigger fan with LSL syntax highlighting.

Sublime Text LSL screenshot.jpg

  • Like 2
Link to comment
Share on other sites

In the screen capture, I'm using a custom font which I read about here:

http://hivelogic.com/articles/top-10-programming-fonts/

They showcase several nice fonts for programming. I use a Proggy font called Pixel Carnage which has more white space between characters to help with readability. I also bolded the text. You can set up your own font settings under Preferences -> Settings - User and format your code like this.

{
    "font_face": "PixelCarnage",
    "font_options":
    [
        "bold"
    ],
    "font_size": 12.0
}

If you need to add additional settings, just be sure to add a comma after the font_size line like the prior settings above it have.


Placing settings in Settings - User ensures your customizations don't get overwritten when  updating to a newer version

And of course you need to first download a custom font and toss into your C:\Windows\Font  folder first.


Also this is a pretty good article about getting started with Sublime Text

http://www.rockettheme.com/magazine/dec-2011/1319-using-sublime-text-2-for-development

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Hi ... I'm trying to link sublime text 2 as "external editor" in SL. Please advise me on what I need to do to set the external link so that it will launch S.T. I keep getting the message about not finding it, when I use 

 /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

which I found recommended somewhere.

Advise me please? Thanks!

Link to comment
Share on other sites

  • 1 year later...

Not to revive an old thread but I was hoping to help some people. I have continued the project in my own Fork on github and have added code block highlighting and most if not all of the current functions listed on the lsl wiki. I still need to enter the default inputs for some functions and events but I will try and keep it up to date as new functions and what not come out.

https://github.com/To-mos/sublime-lsl-syntax

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3511 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...