slonon 5eb9b2dc6b Improves scope names. Fixes/improves expression handling 4 ani în urmă
..
qsrc 5eb9b2dc6b Improves scope names. Fixes/improves expression handling 4 ani în urmă
README.md ddb28b3037 Changes project structure; adds code snippets for qsp 4 ani în urmă

README.md

QSP language syntax highlighting for Visual Studio Code

No known bugs:

  • Multiline comments work now

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 meta.preprocessor",
                "settings": { "foreground": "#268BD2" }
            },
            {
                "scope": "source.qsp error",
                "settings": { "foreground": "#d40707" }
            }
        ]
    }
    }
    
  • Simple modification for Dark+ theme:

    {
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "source.qsp keyword.control.act",
                "settings": { "foreground": "#68e6a7" }
            },
        ]
    }
    }
    
  • Simple modification for Dark (Visual Studio) theme:

    {
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "source.qsp meta.preprocessor",
                "settings": { "foreground": "#a5a5a5" }
            },
            {
                "scope": "source.qsp entity.name.function.language",
                "settings": { "foreground": "#e8f09e" }
            },
            {
                "scope": "source.qsp entity.name.function.include",
                "settings": { "foreground": "#d5e06d" }
            },
            {
                "scope": "source.qsp entity.name.function.display",
                "settings": { "foreground": "#e7c0a6" }
            },
            {
                "scope": "source.qsp variable.language",
                "settings": { "foreground": "#86b6dd" }
            },
            {
                "scope": "source.qsp keyword.control.act",
                "settings": { "foreground": "#68e6a7" }
            }
        ]
    },
    "workbench.colorTheme": "Visual Studio Dark"
    }