Sublime Forum

Disable block highlight, help

#1

Plz Help! How to turn this border off, it drives me crazy.

0 Likes

#2

It’s as a result of some package you have installed. Sublime Text doesn’t do that natively. You’ll have to disable your packages one by one (by putting them in the ignored_packages setting) and then check which one might be doing it. Maybe that package may have some configuration setting to turn it off

1 Like

#3

thank you.
so it must be LSP, it is only package I have installed, however I cannot find any settings for it.

0 Likes

#4

I am not aware if LSP does that out of the box, but you could try safe mode, install LSP and then open the same file, just to be sure nothing else is installed.

1 Like

#5

This must be either “documentHighlights”, or “diagnostics”. From the border color I would guess it is documentHighlights. You can turn off the former via "document_highlight_style": "" and the latter via "show_diagnostics_highlights": false in the LSP settings.

3 Likes

#6

Furthermore, you can also use the “fill” style and set an appropriate color scheme override in your color scheme. See https://lsp.sublimetext.io/customization/#document-highlights

1 Like

#7

So for example for my Mariana color scheme I have these overrides:

{
    "rules": [
        {
            "scope": "markup.error",
            "foreground": "hsl(357, 79%, 65%)"
        },
        {
            "scope": "markup.warning",
            "foreground": "hsl(32, 93%, 66%)"
        },
        {
            "scope": "markup.info",
            "foreground": "hsl(0, 0%, 100%)"
        },
        {
            "scope": "markup.info.hint",
            "foreground": "hsl(0, 0%, 97%)"
        },
        {
            "scope": "markup.highlight.text",
            "background": "color(var(white2) alpha(0.2))"
        },
        {
            "scope": "markup.highlight.read",
            "background": "color(var(green) alpha(0.2))"
        },
        {
            "scope": "markup.highlight.write",
            "background": "color(var(red2) alpha(0.2))"
        },
        {
            "scope": "markup.unnecessary",
            "foreground": "color(rgb(255, 255, 255) alpha(0.4))",
            "background": "color(var(blue3) alpha(0.9))"
        }
    ],
}

resulting in something like this

1 Like

#8

thank you all, it works perfectly :slight_smile:

0 Likes