我正在尝试为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 的想法。但是在如何使它起作用方面有些失落。