Syntax highlighting for QSP language in Visual Studio Code

slonon 1f16bf3549 Adds missing qsp vars 4 ani în urmă
qsrc 1f16bf3549 Adds missing qsp vars 4 ani în urmă
README.md 4b3d489277 Update 'README.md' 5 ani în urmă

README.md

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" }
            }
        ]
    }
    }