tobydennison / WHILE-Syntax-Highlighter

A Sublime Text syntax highlighter for the extended WHILE language, as used in Limits of Computation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WHILE Syntax Highlighter

A Sublime Text syntax highlighter for the extended WHILE language, as used in the Limits of Computation module at the University of Sussex.

Authors: Toby Dennison; Bernhard Reus.

Many thanks to Bernhard for reviewing the highlighter's syntax coverage and the suitability of the colours used.

If you spot any errors, please let us know.

Tip for Speedy WHILE Programming: Download Sublime packages Terminus and Origami to open a terminal window inside of Sublime and position it where you like, respectively.

Note: There is an equivalent extension for VS Code, using the same colours.

Preview

Syntax highlighter preview.

Installation (Windows/Mac/Linux)

  1. Move the two files (WHILE.sublime-syntax, WHILE.sublime-color-scheme) to the appropriate directory, where "YOUR USERNAME" is to be replaced.

    Windows:
    C:\Users\YOUR USERNAME\AppData\Roaming\Sublime Text 3\Packages\User

    Mac/Linux:
    /Users/YOUR USERNAME/Library/Application Support/Sublime Text 3/Packages/User

  2. Open a .while program in Sublime Text.

  3. Click on the file format label in the bottom-right corner.

Click file format label.

  1. Scroll down the list of formats and select ‘WHILE Language (Limits)’.

Change file format.

  1. Change the colour scheme by navigating to ‘Preferences’ > ‘Color Scheme’.

Navigate to Color Scheme.

  1. Select ‘WHILE’ from the list of colour schemes.

Change the colour scheme.

About

A Sublime Text syntax highlighter for the extended WHILE language, as used in Limits of Computation.