Plugin doesn't appear to support SublimeText 4.
madelaney opened this issue · comments
I had the same issue with Sublime Text 4 and Typescript: Doesnt worked the default config so I had to add to my RainbowBracket.sublime-settings (plugin user settings), something like this:
New version working with SublimeText 4 126 and RainbowBrackets v4.2.0!
Follow the RainbowBrackets configuration template (example below featuring Monokai colors):
{
"debug":false,
"brackets":{
"pairs":{
"(":")",
"[":"]",
"{":"}"
},
"filetypes":{
"default":{
"opening":[
"(",
"[",
"{"
],
"ignored_scopes":[
"comment",
"string"
]
},
"ts":{
"opening":[
"(",
"[",
"{"
],
"ignored_scopes":[
"comment",
"string"
],
"extensions":[
"ts"
]
}
}
}
}
Before custom config:
After custom config:
Old configuration template
{
"debug":false,
"brackets":{
"pairs":{
"(":")",
"[":"]",
"{":"}"
},
"filetypes":{
"default":{
"opening":[
"(",
"[",
"{"
],
"ignored_scopes":[
"comment",
"string"
]
},
"ts":{
"opening":[
"(",
"[",
"{"
],
"ignored_scopes":[
"comment",
"string"
],
"extensions":[
"ts"
]
}
}
}
}
it occurs to me too, i just paste the setting codes on the preference-setting, and try to save the change, but the sublime tells me something wrong from the first line of these codes~
![图片](https://user-images.githubusercontent.com/38887991/132233027-460089a8-3492-4c55-ad81-
32d1bc9dcad4.png)
Check the settings format file. Maybe a trailing comma is breaking the JSON format or something like that.
PD: Updated configuration example