In shell (bash, dash, etc) variables in double quotes function the same as outside them: they are substituted for their value. Also command substitution is also made within double quotes. So it would make the script files more readable if the variables and command substitution within double quotes were the same color as outside the quotes.
However, out of the box everything within double quotes is the same color. Is it possible to change that and make variables and command substitutions have the same color as outside the quotes. (But keep the current behavior for single quotes, of course; because variables/commands are not expanded within single quotes).
Color for variables in double quotes = color as outside the quotes
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Color for variables in double quotes = color as outside the quotes
This must be solved by the plugin:
'Highlight Variables' (in the Addons Manager).
It has some presets already but maybe you need to add more presets.
Is it solution?
'Highlight Variables' (in the Addons Manager).
It has some presets already but maybe you need to add more presets.
Is it solution?
Re: Color for variables in double quotes = color as outside the quotes
Indeed it is! How did I miss this plugin? Sorry for taking your time!