扩展vscode tmLanguage中的markdown

时间:2018-10-15 16:47:10

标签: visual-studio-code markdown vscode-extensions tmlanguage

我正在尝试为VS代码降价添加一些新的颜色。

Package.json

"contributes": {
    "grammers": [
        {
            "scopeName": "markdown.rise",
            "path": "./syntaxes/markdown.tmLanguage.json",
            "injectTo": [
                "text.html.markdown"
            ]
        }
    ]
}

markdown.tmLanguage.json

{
    "version":"0.0.1",
    "fileTypes":[],
    "injectionSelector": "L:text.html.markdown",
    "name": "markdown",
    "scopeName": "markdown.rise",
    "patterns": [{
        "name": "punctuation.definition.bold.markdown",
        "match": "^\\@\\w+$"
    }]
}

将颜色着色为 @john 的想法。但是在如何使它起作用方面有些失落。

0 个答案:

没有答案