Damian Walker

Personal Web Pages

Syntax Highlighting for Tiny BASIC

Syntax Highlighting in Tiny BASIC

Monday, 12th August 2019

I spent quite a bit of time preparing a GTKSourceView language definition file for Tiny BASIC. It's not perfect, but it recognises all the core commands, comments, output strings and numbers. It allows me to see syntax highlighting in GEdit and Mousepad, two editors I use regularly. Other editors probably support GTKSourceView, but I don't know what they are.

Just download the GTKSourceView Language Definition for Tiny BASIC and stick it in your GTKSourceView directory, wherever that is (on my Linux system it's /usr/share/gtksourceview-3.0/language-specs). Restart your editor if necessary, and any .bas file you load should be properly highlighted.