arcsector / vscode-splunk-search-syntax

VScode syntax highlighting for SPL
MIT License
9 stars 6 forks source link
spl splunk vscode

Splunk Search Syntax Highlighter VSCode Extension README

Main repo for vscode splunk syntax highlighting

Features

Syntax highlighting in VS Code Noctis high contrast editor

Syntax highlighting in VS Code editor

Markdown code block syntax highlighting example in VS Code Editor

How to install

Install from Source

Install from source by downloading this repo and unzipping into your vscode extensions directory. The default directories are ususally,

Install in Visual Studio Code directly

Install directly in visual studio by going to the extensions tab and searching for "splunk search". The quotes are imperative as the words are normally not treated as a phrase. Click the Install button on the extension with the same name as this README and you're good to go.

How to change splunk colors

You can try and use the following JSON blob:

{
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": "constant.language.splunk_search",
        "settings":{
          "foreground": "#F58220"
        }
      },
      {
        "scope": "support.function.splunk_search",
        "settings":{
          "foreground": "#CF00CF"
        }
      },
      {
        "scope": "support.class.splunk_search",
        "settings":{
          "foreground": "#2662FD"
        }
      }
    ]
  }
}

TODO