From the readme:
        • LiveCode Builder source code in .lcb files
        • LiveCode server source code in .lc and .irev files
        • LiveCode Script source code in .livecodescript files, where the 
shebang line containslivecode or the first line contains an Emacs mode comment 
# -*- mode:livecodescript -*-

I would recommend following Pete’s advice and use the *.livecodescript 
extension for STSMLX. You don’t want your script to be recognised as iRev if it 
is just an object script. At least not if you are using the linter for script 
errors because the three supported grammars are each handled differently. LCS 
just sets the script of an object, iRev comments out all include and require 
commands (we don’t want to lint the entire web app) and includes the file, LCB 
calls lc-compile with no output file (but you still get interface files 
generated). 

The other options to let atom know it is a LCS file are to have a shebang or 
Emacs mode comment on the first line as seen above but the extension is 
obviously the simplest thing to do.

Cheers

Monte

> On 28 Oct 2015, at 6:30 am, Mike Kerner <[email protected]> wrote:
> 
> I think you can also name them .lc, right?  I've also found that
> putting <?lc in the first line helps
> 
> On Tue, Oct 27, 2015 at 2:36 PM, Bob Sneidar <[email protected]>
> wrote:
> 
>> Works a peach and thanks a ton! You smaat guy! Vewy smaat!
>> 
>> Bob S
>> On Oct 27, 2015, at 11:32 , Peter Haworth <[email protected]<mailto:
>> [email protected]>> wrote:
>> 
>> Configure the file extension to be used by MXLEditor to be
>> ".livecodescript"
>> 
>> Pete
>> lcSQL Software
>> 
>> _______________________________________________
>> use-livecode mailing list
>> [email protected]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to