1

Is it possible to limit a Sublime Text snippet to a specific scope while excluding its children? In my case, I would like the snippet to work for text.html but exclude all child scopes such as text.html.markdown.

1 Answer 1

1

You can exclude scopes in selectors using the - symbol, but you need to exclude each one explicitly, there is no wildcard like *. So, for example, to exclude Markdown you could write:

<scope>text.html -text.html.markdown</scope>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.