eykrehbein / strest

⚡️ CI-ready tests for REST APIs configured in YAML
MIT License
1.74k stars 59 forks source link

color highlighting in vscode #56

Closed jgroom33 closed 5 years ago

jgroom33 commented 5 years ago

Possibly add this to a readme.

Assuming Dark+ theme

using this plugin: https://github.com/fabiospampinato/vscode-highlight

add these settings:

    "highlight.regexes": {
      "(Value\\(.*?\\))": {
        "regexFlags": "g",
        "filterFileRegex": ".*\\.strest\\.yml",
        "decorations": [
          { "color": "#9CDCFE" }
        ]
      },
        "(Env\\(.*?\\))": {
          "regexFlags": "g",
          "filterFileRegex": ".*\\.strest\\.yml",
          "decorations": [
            { "color": "#C586C0" }
          ]
        }
      }
eykrehbein commented 5 years ago

Maybe a whole vscode extension would be even more useful

jgroom33 commented 5 years ago

I considered that, but the grammars for yaml were a bit more complex than I cared to work on.

eykrehbein commented 5 years ago

I also came across this problem but I just cloned the vscode yaml highlighting from here but I don't really understand the syntax behind this

jgroom33 commented 5 years ago

yup. That's what i didn't want to mess with.