Sublime Text 3 Automatic Build System Selection for MultiMarkdown File

I want to create a build system for Sublime Text 3 that will automatically run on any file that ends with ".mmd". From the unofficial documentation, I understand that the "selector" option provides this function; however I cannot get it to work correctly. Below is my current build system (I am doing this for use with Scriptorium ). The numbered lines show the other arguments I was trying to pass to the "selector".

{
    "cmd": ["scriptorium", "build"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.markdown.multimarkdown",
    // "selector": "source.multimarkdown",
    // "selector": "source.mmd",
}

      

If I manually select it as a build system it works as expected, but if I try to build a system using auto build it says no build system. Can anyone tell me what I am doing wrong?

In View-> Syntax, .mmd files are opened under Markdown -> MultiMarkdown if that helps.

+3


source to share


1 answer


The correct area selector to be used for MultiMarkdown will be text.html.markdown.multimarkdown

, as you can see by creating a new, empty tab in ST, setting the syntax Markdown β†’ MultiMarkdown, and then going to Tools β†’ Developer> Show Region Name.



+3


source







All Articles