Sublime Forum

What selector should I use for plaintext?

#1

I am currently build a custom build system where I convert markdown files to multiple targets. As right now I use the following selector: "selector": "text.html.markdown".

My markdown files have either the extension .md or .txt. Who can I add those .txt files as a selector to my build system?

From the help page about selectors (https://www.sublimetext.com/docs/selectors.html) I couldn’t figure out what other selector names could be.

`

0 Likes

#2

You can inspect the scopes from any position in any view by clicking on Tools > Developer > Show Scope Name.

1 Like

#3

Thanks. I didn’t know that. :slight_smile:

As it seems have my text files a markdown scope as well: text.html.markdown.gfm.

1 Like