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.
-
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
-
Open a
.while
program in Sublime Text. -
Click on the file format label in the bottom-right corner.
- Scroll down the list of formats and select ‘WHILE Language (Limits)’.
- Change the colour scheme by navigating to ‘Preferences’ > ‘Color Scheme’.
- Select ‘WHILE’ from the list of colour schemes.