我正在通过 TextEditor.setDecorations()
在 VS Code 加载项中设置文本背景颜色。为此,我使用 ThemableDecorationRenderOptions
对象并将其 backgroundcolor
value 设置为字符串。 (对不起,我不能使用主题颜色。)但我不知道 backgroundcolor
可能的 values - 除了 values 像 "red"
或 "lightgreen"
显然有效。
某处是否有颜色字符串格式的描述?
回答1
颜色是正常的 CSS 颜色。网上有很多资源可以解释它们。