{"id":13410693,"url":"https://github.com/scopatz/nanorc","last_synced_at":"2025-04-09T02:16:09.964Z","repository":{"id":994651,"uuid":"803940","full_name":"scopatz/nanorc","owner":"scopatz","description":"Improved Nano Syntax Highlighting Files","archived":false,"fork":false,"pushed_at":"2024-05-27T08:21:11.000Z","size":463,"stargazers_count":3052,"open_issues_count":115,"forks_count":555,"subscribers_count":75,"default_branch":"master","last_synced_at":"2024-10-29T15:27:19.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scopatz.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-07-28T22:06:17.000Z","updated_at":"2024-10-24T17:14:56.000Z","dependencies_parsed_at":"2024-07-24T13:28:31.360Z","dependency_job_id":"7291fd59-de1f-4845-96a3-790c7099e228","html_url":"https://github.com/scopatz/nanorc","commit_stats":{"total_commits":388,"total_committers":137,"mean_commits":2.832116788321168,"dds":0.8634020618556701,"last_synced_commit":"1aa64a86cf4c750e4d4788ef1a19d7a71ab641dd"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fnanorc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fnanorc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fnanorc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scopatz%2Fnanorc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scopatz","download_url":"https://codeload.github.com/scopatz/nanorc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247962605,"owners_count":21024871,"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":[],"created_at":"2024-07-30T20:01:08.461Z","updated_at":"2025-04-09T02:16:09.947Z","avatar_url":"https://github.com/scopatz.png","language":"Shell","funding_links":[],"categories":["Linux 🐧","Shell","IDE and Editor Integrations","Uncategorized"],"sub_categories":["Helpers","Datasource Integrations Blogs and Articles","Uncategorized"],"readme":"# Improved Nano Syntax Highlighting Files\n\nThis repository holds ``{lang}.nanorc`` files that have improved definitions of syntax highlighting for various languages.\n\n## Installation\n\nThere are three ways to install this repo.\n\n### 1. Automatic installer\n\nCopy the following code to download and run the installer script:\n\n```sh\ncurl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh\n```\n\nIf your machine doesn't have `curl` command, use this code:\n\n```sh\nwget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh\n```\n\nThis automatically unpacks all the `.nanorc` files to `~/.nano`.\n\n#### Note\n\nSome syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.  \nThe ` install.sh` script may be run with `-l` or `--lite` to insert the included syntax definitions from this package with *lower* precedence than the ones provided by the standard package.\n\n### 2. Package managers\n\nThe follow table lists all systems with this package published.  \nFeel free to add your official package manager.\n\n\u003e Systems that are based in others' package managers or repositories are compatible. For example: `pacman` based systems are compatible with `Arch Linux`.\n\n| System     | Command                                  |\n| ---------- | ---------------------------------------- |\n| Arch Linux | `pacman -S nano-syntax-highlighting`     |\n\n### 3. Clone repo (copy the files)\n\nThe files should be placed inside of the `~/.nano/` directory.\n\nYou can put the files in another directory inside the correct `.nano` folder.\nFor example: `~/.nano/nanorc/`.\nFor readability will use `$install_path` for the path of your choose (in *system wide* the path is always `/usr/share/nano-syntax-highlighting/`).\n\nFor user, only run:\n\n`git clone git@github.com:scopatz/nanorc.git $install_path` or  \n`git clone https://github.com/scopatz/nanorc.git $install_path`\n\nFor system wide, run:\n\n`sudo git clone https://github.com/scopatz/nanorc.git $install_path`\n\n## Configuration\n\nAfter installation, you need to inform `nano` to used the new highlight files. \nThe configuration file is located at `~/.nanorc`, for users, and at `/etc/nanorc`, for system wide.\nIf this file doesn't exist, create a new one.\n\nAgain there are three ways:\n\n### 1. Include all\n\nAppend the content of the folder in one line, with wildcard:\n\n`echo \"include $install_path/*.nanorc\" \u003e\u003e ~/.nanorc` or  \n`echo \"include $install_path/*.nanorc\" \u003e\u003e /etc/nanorc`\n\n### 2. Include/append our `nanorc` file\n\nSimply run:\n\n`cat $install_path/nanorc \u003e\u003e ~/.nanorc` or  \n`cat $install_path/nanorc \u003e\u003e /etc/nanorc`\n\n### 3. One by one\n\nAdd your preferable languages one by one into the file. For example:\n\n```\n## C/C++\ninclude \"~/.nano/c.nanorc\"\n```\n\n## Tricks \u0026 Tweaks\n\n### MacOS\n\n`\\\u003c` and `\\\u003e` are regular character escapes on MacOS.  \nThe bug is fixed in Nano, but this might be a problem if you are using an older version  \nIf this is the case, replace them respectively with `[[:\u003c:]]` and `[[:\u003e:]]`.\nThis is reported in [Issue 52](https://github.com/scopatz/nanorc/issues/52).\n\n### Why not include the original files?\n\nGood question! It's due to the way that nano reads the files, the regex instructions should be in a _specific order_ which is evident in some nanorc files.\nAnd if we use the `include` or `extendsyntax` commands, the colors or other things may not work as expected.  \nThe best way to make changes is by copying and editing the original files.  \nPlease see this [issue](https://savannah.gnu.org/bugs/index.php?5698).   \nBut if some original nanorc file needs an update, feel free to [patch it](https://savannah.gnu.org/patch/?func=additem\u0026group=nano)!\n\n### My shortcut is not working!\n\nPlease see this [issue](https://savannah.gnu.org/bugs/?56994).\n\n## Acknowledgements\n\nSome of these files are derived from the original [Nano](https://www.nano-editor.org) editor [repo](https://git.savannah.gnu.org/cgit/nano.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscopatz%2Fnanorc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscopatz%2Fnanorc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscopatz%2Fnanorc/lists"}