<div dir="ltr">Sometimes asking the question is all that's needed. TM environment variables. I've discovered $TM_SCOPE="text.html.basic meta.tag.block.any.html meta.attribute-with-value.id.html string.quoted.double.html ..." Thanks all!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>07952130635<br>skype: rdrake98<br><a href="https://dl.dropboxusercontent.com/u/51971271/drake/index.html" target="_blank">blog</a> - <a href="https://twitter.com/rdrake98" target="_blank">twitter</a><br></div></div>
<br><div class="gmail_quote">On 5 November 2014 11:21, Richard Drake <span dir="ltr"><<a href="mailto:rdrake98@gmail.com" target="_blank">rdrake98@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've been experimenting with some ideas for enhancing editing of code, particularly Ruby and JavaScript, but this query is more general. I'm writing scripts in Ruby and quite happy with ruby18 if it has to be that. Can I get scope information from within a script? I realise that a scope or list of scopes can act as a kind of guard for whether a script is activated. But once a script is running can it take a look at the results of the various scope definitions applied to the current code file?<br><div><div class="gmail_extra"><br clear="all"><div><div><br>07952130635<br>skype: rdrake98<br><a href="https://dl.dropboxusercontent.com/u/51971271/drake/index.html" target="_blank">blog</a> - <a href="https://twitter.com/rdrake98" target="_blank">twitter</a><br></div></div>
</div></div></div>
</blockquote></div><br></div>