Nano colours the things on the screen using just the regular expressions specified in the relevant syntax file. There is no way that these regexes can take the position of the cursor into account. (Well, not without a major and ugly patch, and that for just one special case.) So... unless you are willing to write the patch...
Nano colours the things on the screen using just the regular expressions specified in the relevant syntax file. There is no way that these regexes can take the position of the cursor into account. (Well, not without a major and ugly patch, and that for just one special case.) So... unless you are willing to write the patch...