Highlight brackets of dictionaries and lists in Python output #614
-
|
Hello, I would like to be able to highlight dictionaries and lists in the output of my Python scripts. Any idea on how to make this happen? I have played around a bit with Adding the following to the user settings didn't work, either. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
What you are showing isn't really how the rules work. If you have We also have two types of brackets: scope brackets and normal brackets. You don't necessarily need to know how those work, just know that there are two different kinds and that you would alter them using different options. What we don't do is modify the default list of "user_brackets": [
{
"name": "square",
"language_list": ["Hex", "RTF"],
},
// More bracket rules ...
]I may or may not make that clear enough in the docs. I'll take a look sometime soon and see if I need to revise things. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! This did the trick for me. However, I would like to do the same to double_quotes and single_quotes. Why does the following not work? |
Beta Was this translation helpful? Give feedback.
What you are showing isn't really how the rules work. If you have
search_in_widgetsenabled, that is at least the first part. There aren't profiles for a language type, but you either include language types for a bracket or exclude language types.We also have two types of brackets: scope brackets and normal brackets. You don't necessarily need to know how those work, just know that there are two different kinds and that you would alter them using different options.
What we don't do is modify the default list of
bracketsorscope_brackets. You'll useuser_bracketsanduser_scope_brackets. You must at least specify thename, and then you can override any configuration at the root level. so…