Text highlighting for ES6 template literals (backticks) in IntelliJ IDEA
Asked Answered
G

4

9

Where should I look in the settings to remove the green background highlighting for text within the backticks? I think it is related to HTML in non-HTML files, probably it has nothing to do with quotes or backticks. I've been searching through settings the best I could.

enter image description here

Goober answered 25/7, 2016 at 11:28 Comment(0)
G
21

I finally found the answer. I'll let this stay in case anyone else wonders.

Editor -> Colors & Fonts -> General -> Injected language fragment -> Uncheck background on the right side panel

Cheers

enter image description here

Goober answered 25/7, 2016 at 11:40 Comment(0)
F
2

... and for some reason they've changed this again in 2017.2

Now go to Preferences -> Editor -> Color Scheme -> General -> Injected language fragment and uncheck "Background"

Foreknowledge answered 27/10, 2017 at 18:15 Comment(0)
D
1

In 2019.3:

Settings > Editor > Color Scheme > General > Code > Injected language fragment

And deselect Background

enter image description here

Dendy answered 13/3, 2020 at 17:56 Comment(0)
O
-1

For v 2017.1 and up it's Preferences > Editor > Colors & Fonts > General > Code > Injected language fragment > uncheck Background

Overpower answered 22/3, 2017 at 2:1 Comment(1)
In 2018.2.1 there is no "Editor > Colors & Fonts". They keep moving stuff around.Documentation

© 2022 - 2024 — McMap. All rights reserved.