0

I use TexMate grammar to change colors of certain keywords/lines in output pane.:

my-output.tmLanguage.json

{
  "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
  "name": "my-output",
  "scopeName": "source.my-output",
  "patterns": [
    {
      "match": "foo",
      "name": "my-bar"
    }
  ]
}

The colors are hardcoded in package.json as:

  "contributes": {
    "grammars": [
      {
        "language": "my-output",
        "scopeName": "source.my-output",
        "path": "my-output.tmLanguage.json"
      }
    ],
    "configurationDefaults": {
      "editor.tokenColorCustomizations": {
        "textMateRules": [
          {
            "scope": "my-foo",
            "settings": {
              "foreground": "#123456"
            }
          }
        ]
      }
    }
  }

Does VSCode provide ability to override textmate colors if defined in user's config?

Gershom Maes
  • 7,358
  • 2
  • 35
  • 55
vanowm
  • 9,466
  • 2
  • 21
  • 37

0 Answers0