Op 06-02-2021 om 14:59 schreef Otto Kekäläinen:
> .yml files are quite common, and it would be nice if nano showed
> syntax highlightning for them by default.

On my personal machine:

$ locate -r "\.ya\?ml$" | wc -l
74

$ locate -r "\.json$" | wc -l
93

Yaml files seem less common than JSON file, but common enough to
deserve a nanorc file incorporated into nano.

> Personally I have been using the file from
> https://rpanev.pro/linux/ansible/2020/02/14/How-to-enable-syntax-highlighting-for-YAML-files-in-Nano.html

That file is identical to the one from the repo you linked to:

> https://github.com/serialhex/nano-highlight

But it's unclear what license covers the file -- the site says nothing
about the yaml.nanorc.  Looking at the history of the file, it seems
that it was contributed by Denis Efremov (efremov dot a dot denis (at)
gmail dot com).  If you wish this yaml.nanorc to be included in nano,
please ask him if he will license this file under GPL v3+.  (When you
do so, please CC me.)  Or provide a file that you have designed yourself.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to