le-jun / wiki.nanorc

Wikitext syntax highlighting for GNU nano text editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Give Up GitHub

This project has given up GitHub. (See Software Freedom Conservancy's Give Up GitHub site for details.)

You can now find this project at https://codeberg.org/lejun/wiki.nanorc instead.

Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot.

Join us; you can give up GitHub too!

Logo of the GiveUpGitHub campaign

Wikitext syntax highlight file for GNU nano text editor

Quick and dirty nanorc file for Wikitext support on GNU nano text editor.

Installation

  1. Copy the file
  2. Put it in the ~/.nano/ directory
  3. Add it to nano’s included files by adding include ~/.nano/cooklang.nanorc into ~/.nanorc (User specific) or /etc/nanorc (System wide).

Note

This file aims to reproduce the "official" built-in wiki editor’s syntax highlight. Although officially documented by nanorc my terminal (xfce4-terminal 0.8.9.1) limitations seem to prevent the use of colours and emphasis. Those parts are commented out, so that you can uncomment them and test if your terminal support them.

About

Wikitext syntax highlighting for GNU nano text editor

License:MIT License