Skip to content

v1.3 Syntax Highlighting for Nano

Compare
Choose a tag to compare
@anvitha305 anvitha305 released this 14 Aug 02:53
9efe129

Guess what? Another editor plugin drafted 💀. I know I said Emacs would be the last one but I would rather use Nano than it personally so I decided to put Emacs at the end as the last ditch resort.

image

To install this plugin, download the legv8.nanorc file put it in your /usr/share/nano folder or C:\nano\ in Windows or /usr/local/share/nano on MacOS and add the following to your .nanorc file, replacing with where the file's location is:

include "<PATH TO FILE>/legv8.nanorc'

Like in v1.1 [Vim Syntax Highlighting], this may have conflicts with .s filetypes, so when editing LEGV8 assembly files with .s as the extension you should use the command line option --syntax=legv8 when opening Nano so that the highlighting from asm.nanorc isn't used instead. It automatically uses the highlighting for .legv8 filetypes when the .nanorc file is configured as above, but this should resolve conflicts with other assembly files when deciding on a type of syntax highlighting.