Skip to content

Instantly share code, notes, and snippets.

@webgtx
Last active August 9, 2025 07:46
Show Gist options
  • Select an option

  • Save webgtx/6a5e7bb743e511e2df7eef49b2d5a2e2 to your computer and use it in GitHub Desktop.

Select an option

Save webgtx/6a5e7bb743e511e2df7eef49b2d5a2e2 to your computer and use it in GitHub Desktop.
How to fix YAML highlighting in sublime text

Call Preferences => Customize Color Scheme—then add this between the square brackets under "rules":

        {
            "name": "Mapping Key Names",
            "scope": "meta.mapping.key string",
            "foreground": "var(red)"
        }
@tetafro
Copy link

tetafro commented Aug 9, 2025

You can also use a variable from your theme to match colors (the variables are on the left panel when you open "Customize Color Scheme"):

{
    "name": "Mapping Key Names",
    "scope": "meta.mapping.key string",
    "foreground": "var(red)" # <---------- this
}

@webgtx
Copy link
Author

webgtx commented Aug 9, 2025

thanks for the suggestion @tetafro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment