是否可以更改文本编辑器的背景取决于语言? 代码beetwen
class Company {
constructor(companyName) {
this._companyName = companyName;
this._location = location;
}
get companyName() {
return this._companyName;
}
get location() {
return this._location;
}
}
class EightWeeks extends Company {
constructor(week, year, month) {
super(companyName);
this._week = week;
this._year = year;
this._month = month;
}
get week() {
return this._week;
}
get year() {
const yearlyCost = (this._week * 44) += (this._week * 8);
return this.yearlyCost;
}
get month() {
return this._year / 12;
}
}
const accessHornsey = new EightWeeks ('17.77', '', '');
console.log(EightWeeks);
和
<?php ... ?>
具有其他背景色以使其更加可见。
答案 0 :(得分:1)
我认为您将必须使用类似highlight extension之类的东西。
然后在您的设置中:
"highlight.regexes": {
"(<script>\\s*)(\\r\\n)+((.*\\r\\n)*?)(\\s*<\\/script>)" : [
{},
{},
{
"backgroundColor": "#009",
"color": "#fff",
},
{}
],
"(<script>\\s*)(.*?)(\\s*<\\/script>)" : [
{},
{
"backgroundColor": "#009",
"color": "#fff",
},
{}
],
"(<\\?php\\s*)(.*?)(\\s*\\?>)" : [
{},
{
"backgroundColor": "#009",
"color": "#fff",
},
{}
],
"(<\\?php)(\\r\\n)+((.*\\r\\n)*?)(\\s*\\?>)" : [
{},
{},
{
"backgroundColor": "#009",
"color": "#fff",
},
{}
]
}
}
此修改后的版本应适用于多行示例。
在将其编辑到设置中后,您必须 reload
您的vscode。