Skip to content
Ridgun
English

Editors

Syntax colours and formatting for VS Code, Emacs and gedit.

The Ridgun repository has editor support in its editors/ folder:

  • VS Code: a language extension with syntax colours and the comment and bracket settings (editors/vscode).
  • Emacs: ridgun-mode.el (editors/emacs).
  • gedit: a language file and a format command (editors/gedit, with an install.sh).

Whatever the editor, stable format is the source of truth for layout. Run it before you commit, or bind it to save. Code that has been formatted lines up the same way for everyone, so a diff only shows what changed.

Colours on this site

The code on this site, in the book and in the forum is coloured by the same highlighter the formatter uses. Write a code block that starts with three backticks and ridgun, and it is coloured for you.

Next, read the FAQ.