Color for variables in double quotes = color as outside the quotes

Post Reply
Kzer-Za
Posts: 3
Joined: 16.09.2023 09:54

Color for variables in double quotes = color as outside the quotes

Post by Kzer-Za »

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).
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Color for variables in double quotes = color as outside the quotes

Post by main Alexey »

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?
Kzer-Za
Posts: 3
Joined: 16.09.2023 09:54

Re: Color for variables in double quotes = color as outside the quotes

Post by Kzer-Za »

Indeed it is! How did I miss this plugin? Sorry for taking your time!
Post Reply