I just want an border frame.
I just want an border frame. I don't want to change the original color of the code.
My code original like this:
My setting.json like is:
"todohighlight.defaultStyle": { "border": "1px solid #eee", "borderRadius": "2px", "isWholeLine": false, },
My code like this:
If I set it like this
"todohighlight.defaultStyle": { "backgroundColor": "rgba(255, 255, 0, 0)", "overviewRulerColor": "rgba(255, 255, 0, 0.1)", "border": "1px solid #eee", "borderRadius": "2px", "isWholeLine": false, },
And, My code like this:
So, what should I do?
I don't think you have shown all your settings, because by default that text won't be highlighted. But it does seem that it currently changes the colour of the text to blue when a "color" isn't specified. I'd not found this edge case before.
A PR to fix this would be welcome.
I don't think you have shown all your settings, because by default that text won't be highlighted. But it does seem that it currently changes the colour of the text to blue when a "color" isn't specified. I'd not found this edge case before.
A PR to fix this would be welcome.
OK, Fine. I'll try to fix it.
I review the code. And I find way.
Just need setting like this:
"color": "", "backgroundColor": "",
That overwrite DEFAULT_STYLE.
The code like this:
Last, I have a question. @jgclark
Why are defind the DEFAULT_STYLE in package.json?
Last, I have a question. @jgclark Why are defind the DEFAULT_STYLE in package.json?
Because then TODO: and FIXME: will work as soon as you turn the extension on, without needing users to work out how to configure the colour codes. But it can be over-ridden (as you have done) when a user decides to learn more about it.