Skip to content

Scheme syntax highlighting for Sublime Text 4.

License

Notifications You must be signed in to change notification settings

absop/ST-Scheme

Repository files navigation

Scheme

Repository URL

A Sublime Text 4 plugin for the Scheme language, with the following features:

  • syntactic code highlighting
  • code formatting
  • goto definition

For more information about the Scheme language, see the r6rs spec: http://www.r6rs.org/final/r6rs.pdf

Screenshots

1

2

3

Usage

Syntax Highlighting

To distinguish expression commented regions from normal regions, exec the command UI: Customize Color Scheme, and merge the following code into your customized color scheme.

{
    "rules":
    [
        {
          "scope": "meta.comment",
          "foreground_adjust": "l(- 15%) s(- 30%)",
          "background": "var(--background)"
        }
    ]
}

Code Formatting

Key bindings

key Command Context
ctrl+alt+f Format Scheme Code source.scheme

Before Formatting

original

After Formatting

formatted

How to Use

Select a region of code (with some expressions in it), and then press down the shortcuts ( ctrl+alt+f ).

Code Editing

In order to get a better Scheme code editor experience, you will need to install another plugin: RainbowBrackets, it gives you rainbow brackets and the ability to quickly edit brackets.