Sublime Forum

Sublime-Livecode Challenges

#1

Hi all,

I’m new to the forum and to Sublime Text, so please excuse me if my query seems lame to most.

I’ve been looking into a few different text editors over the past few days. My goal is to find an editor to work alongside the script editor in Livecode. For most of my work, the LC editor works adequately, but when working on large scripts, having code folding, multiple views into the same script, bookmarking, and all the other editor candy is really helpful. Sublime Text looks like a sweet solution (currently comparing it to BBEdit, and TextMate). Most of my work takes place on my OSX machine, so a Windows solutions is not necessary.

I’m having the following 2 challenges:

  1. Other than the revIgniter files created for TextMate, I don’t know of any other files out there that allow syntax colouring for Livecode. I’ve tried to get syntax colouring to work in Sublime Text, but have failed miserably. Can somebody please explain the process of using these files? I currently have a file called ‘iRev.tmLanguage’ in a folder ‘Syntaxes’, and several files with extension ‘.tmSnippet’ in a folder ‘Snippets’ that I would like to use. Other than these two simple things, I don’t need a lot of other bells and whistles.

  2. In Livecode, I have a plug-in (STS/MLXEditor) which allows me to work with an external editor and makes the process fairly streamlined. The plug-in uses the following script to do so:

put “%s” into tTmpFile
“open -a /Applications/Sublime Text.app” && quote & tTmpFile & quote into tCmd
get shell(tCmd)

This script is working for BBEdit and TextMate, but it’s not working for Sublime Text 3(sublime text.app) or Sublime Text 2 (sublime text 2.app). Any insights into why it’s not working for ST, but does for the other editors? Do I have the incorrect app name in the script?

Thanks for any assistance. Sublime Text appears to have all (and even more than) the horsepower I need, yet it doesn’t overwhelm me with icons and menus, which I really appreciate. I hope I can get these two minor challenges resolved with your help.

J Starkman

0 Likes