README.md 1.3 KB

QSP language syntax highlighting for Visual Studio Code

Sadly not feature complete:

  • Multiline comments can be extended in multiple ways, which aren't all caught (use quotes and brackets only in pairs)

original source


Usage:

  • Copy qsrc folder to "%homepath%\.vscode\extensions"

Customize formatting:

  • Modify settings.json (location: %appdata%\Code\User\) (example content):

    {
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "source.qsp comment",
                "settings": { "foreground": "#bdbdbd" }
            },
            {
                "scope": "source.qsp variable.other.user",
                "settings": { "foreground": "#058bad" }
            },
            {
                "scope": "source.qsp keyword.conditional",
                "settings": {"fontStyle": "bold", "foreground": "#4c4cff" }
            },
            {
                "scope": "source.qsp preprocessor",
                "settings": { "foreground": "#268BD2" }
            },
            {
                "scope": "source.qsp error",
                "settings": { "foreground": "#d40707" }
            }
        ]
    }
    }