{"id":21400340,"url":"https://github.com/oefenweb/nanorc","last_synced_at":"2026-01-03T01:51:41.626Z","repository":{"id":145771154,"uuid":"150073486","full_name":"Oefenweb/nanorc","owner":"Oefenweb","description":"Syntax highlighting definitions for nano","archived":false,"fork":false,"pushed_at":"2018-09-24T08:26:44.000Z","size":34,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-23T02:44:43.658Z","etag":null,"topics":["development","ide","nano","syntax-highlighting"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T08:24:45.000Z","updated_at":"2024-09-29T18:54:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7a8ad3b-fb41-47e9-9045-71c070ec1b41","html_url":"https://github.com/Oefenweb/nanorc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fnanorc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fnanorc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fnanorc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fnanorc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/nanorc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893905,"owners_count":20364916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","ide","nano","syntax-highlighting"],"created_at":"2024-11-22T15:21:13.530Z","updated_at":"2026-01-03T01:51:41.597Z","avatar_url":"https://github.com/Oefenweb.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Unmaintained\n============\n\nThe original maintainer of this project no longer uses nano and hence\nhas very little motivation to continue working on it. It remains\navailable on GitHub for archival purposes only.\n\nI highly recommend using [dte] as a simple but much more capable editor.\n\n[dte] screenshot:\n\n![dte screenshot](https://craigbarnes.gitlab.io/dte/screenshot.png)\n\n\n------\n\n\nDescription\n-----------\n\nThe syntax highlighting definitions that come bundled with nano are of\npretty poor quality. This is an attempt at providing a good set of accurate\nsyntax definitions to replace and expand the defaults.\n\nInstallation\n------------\n\nUsing `make install` will install the syntax definitions to the\n`~/.nano/syntax/` directory.\n\nTo enable highlighting for *all* languages after installation, add the\nfollowing command to your `~/.nanorc` file:\n\n    include ~/.nano/syntax/ALL.nanorc\n\nTo enable only a subset of languages, `include` them individually:\n\n    include ~/.nano/syntax/c.nanorc\n    include ~/.nano/syntax/python.nanorc\n    include ~/.nano/syntax/sh.nanorc\n    # ...\n\nIf you prefer to install to a location that all users can access, using\n`sudo make install-global` will install to `/usr/local/share/nano/`.\nSyntax files installed under this directory can then be `include`d in\neither `/etc/nanorc` or any user's personal `~/.nanorc`.\n\n**Note**: If your terminal **text** color isn't black, you'll need to\nspecify it when installing, using `make install TEXT=color`, where\n`color` must be one of: `red`, `green`, `yellow`, `blue`, `magenta`,\n`cyan` or `white`.\n\nAfter installation, the various source code samples in the `examples`\ndirectory can be used to check that highlighting is working correctly.\nIf it doesn't work as expected, see the FAQ below.\n\nTheme System\n------------\n\nAll `*.nanorc` files are passed through [mixins.sed] and [theme.sed] before\ninstallation. These scripts allow rules to be specified in terms of token\nnames or [mixins], instead of hard-coded colors.\n\nFor example, the following named rule:\n\n    TYPE: \"int|bool|string\"\n\nbecomes:\n\n    color green \"int|bool|string\"\n\nand the following \"mixin\":\n\n    +BOOLEAN\n\nbecomes:\n\n    color brightcyan \"\\\u003c(true|false)\\\u003e\"\n\nThis system helps to keep colors uniform across different languages and\nalso to keep the definitions clear and maintainable, which is something that\nbecomes quite awkward using only plain [nanorc] files.\n\n**Note:** if `~/.nanotheme` exists it will be used as a custom theme, in\nplace of [theme.sed]. A custom theme may also be specified by installing\nwith `make THEME=your-custom-theme.sed`. Themes must be valid sed scripts,\ndefining *all* color codes found in [theme.sed] in order to work correctly.\n\nFAQ\n----\n\n### Why does syntax highlighting only work for a subset of supported files?\n\nThere appears to be a bug in older versions of nano that causes\nhighlighting to fail when `/etc/nanorc` and `~/.nanorc` both contain\n`syntax` rules. The usual workaround is to remove all `syntax` and `include`\ncommands from one file or the other, or to use a newer version of nano.\n\n### Why do I get weird errors when running nano \u003c 2.1.5 on *BSD systems?\n\nIn order to reliably highlight keywords, this projects makes heavy use of\nthe GNU regex word boundary extensions (`\\\u003c` and `\\\u003e`). BSD implementations\nalso have these extensions but use a different, incompatible syntax\n(`[[:\u003c:]]` and `[[:\u003e:]]`). Since version 2.1.5, nano can automatically\ntranslate the GNU syntax to BSD syntax at run-time, but for the benefit of\npeople running a pre-2.1.5 version of nano on OS X or *BSD, the `.nanorc`\nfile itself can be translated by installing with `make BSDREGEX=1`.\n\n### Why not use `\\s` instead of the verbose `[[:space:]]` pattern?\n\nBecause nano compiles against the platform's native regex library and some\nplatforms don't support `\\s` (as it's not required by POSIX [ERE]).\n\nUnlicense\n---------\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \u003chttp://unlicense.org/\u003e\n\n\n[dte]: https://github.com/craigbarnes/dte\n[GNU nano]: http://www.nano-editor.org/\n[nanorc]: http://www.nano-editor.org/dist/v2.3/nanorc.5.html\n[theme.sed]: https://github.com/nanorc/nanorc/tree/master/theme.sed\n[mixins.sed]: https://github.com/nanorc/nanorc/tree/master/mixins.sed\n[mixins]: https://github.com/nanorc/nanorc/tree/master/mixins\n[ERE]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_04\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fnanorc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fnanorc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fnanorc/lists"}