4

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

包.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之类的东西着色。但是在如何使它工作上有点迷失。

4

0 回答 0