{"id":18597305,"url":"https://github.com/wiremoons/odin-syntax-for-bat","last_synced_at":"2025-10-16T02:04:10.033Z","repository":{"id":173451664,"uuid":"650772065","full_name":"wiremoons/odin-syntax-for-bat","owner":"wiremoons","description":"Odin language syntax highlight support file for use with 'bat'","archived":false,"fork":false,"pushed_at":"2023-06-07T20:31:35.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T23:44:38.359Z","etag":null,"topics":["bat","less","more","odin","odin-lang","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiremoons.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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-07T19:19:52.000Z","updated_at":"2023-06-08T15:02:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"731e5fce-d71d-40f7-be3f-465e32810302","html_url":"https://github.com/wiremoons/odin-syntax-for-bat","commit_stats":null,"previous_names":["wiremoons/odin-syntax-for-bat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fodin-syntax-for-bat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fodin-syntax-for-bat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fodin-syntax-for-bat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fodin-syntax-for-bat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremoons","download_url":"https://codeload.github.com/wiremoons/odin-syntax-for-bat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254538543,"owners_count":22087884,"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":["bat","less","more","odin","odin-lang","syntax-highlighting"],"created_at":"2024-11-07T01:27:38.147Z","updated_at":"2025-10-16T02:04:04.986Z","avatar_url":"https://github.com/wiremoons.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# About 'bat Odin Syntax'\n\nInstall *Odin* language syntax highlighting support for use with the command \nline tool called [bat](https://github.com/sharkdp/bat) created by @sharkdp\n\n\u003e bat : A cat(1) clone with syntax highlighting and Git integration.\n\n\n## Purpose\n\nTo provide an [Odin](https://odin-lang.org) language syntax \nhighlighting support file, that works with [bat](https://github.com/sharkdp/bat).\n\n\n## Installation and Usage\n\nOnly the single file: [Odin.sublime-syntax](https://github.com/wiremoons/odin-syntax-for-bat/blob/main/Odin.sublime-syntax) is required!\n\n### Download\nDownload either by:\n\na) cloning this whole repo : `git clone https://github.com/wiremoons/odin-syntax-for-bat.git` **or** \n\nb) just download the single syntax support file directly to your computer with a tool such as curl or wget : `curl -OL https://raw.githubusercontent.com/wiremoons/odin-syntax-for-bat/main/Odin.sublime-syntax`\n\n\n## Install\nOnce you have a copy of the `Odin.sublime-syntax` file, use it with `bat` as follows:\n\n### Ubuntu (Linux)\n\nTo install `bat` use the distro package manager (ie `sudo apt install bat`) or download it from: [bat](https://github.com/sharkdp/bat). Once installed, to add Odin language support:\n\n1. Save a copy of the `Odin.sublime-syntax` from this repo into the following \ndirectory: `~/.config/bat/syntaxes/`\n2. Run the following `bat` command: `bat cache --build`\n3. Check Odin is now included in the list when running: `bat --list-languages`\n\nNow when viewing an Odin language source code file, syntax highlighting should \nbe supported.\n\n### Appple macOS\n\nTo install `bat` the popular *macOS* package manager [HomeBrew](https://brew.sh) can be used (ie `brew install bat`) or download it from: [bat](https://github.com/sharkdp/bat). Once installed, to add Odin language support:\n\n1. Save a copy of the `Odin.sublime-syntax` from this repo into the following \ndirectory: `~/.config/bat/syntaxes/`\n2. Run the following `bat` command: `bat cache --build`\n3. Check Odin is now included in the list when running: `bat --list-languages`\n\nNow when viewing an Odin language source code file, syntax highlighting should \nbe supported.\n\n### Windows 10\n\nTo install `bat` on Windows, see the help here: [bat](https://github.com/sharkdp/bat). Once installed, to add Odin language support:\n\n1. With `bat.exe` installed run the command: `bat --config-dir`. This location is the `bat.exe` config directory location.\n2. Change to the `bat.exe` config directory (as above) and make a new directory called: `syntaxes`.\n3. Save a copy of the `Odin.sublime-syntax` from this repo into the newly created `syntaxes` directory.\n4. Run the following `bat.exe` command: `bat.exe cache --build`\n5. Check Odin is now included in the list when running: `bat --list-languages`\n\nJust for clarity - on my *Windows 10* computer with a username of *simon* the full path of the \nrequired `syntaxes` directory is: `C:\\Users\\simon\\AppData\\Roaming\\bat\\syntaxes\\` and this is \nwhere the a copy of the `Odin.sublime-syntax` file from this repo should be saved. The \nusername (ie `simon`) will be diffrent of course for your computer! Then run the \ncommand: `bat cache --build` to complete the process.\n\nNow when viewing an Odin language source code file, syntax highlighting should \nbe supported.\n \nMore complete instructions on using and adding a new syntax files with `bat` are \nincluded in the [Bat Readme document](https://github.com/sharkdp/bat#adding-new-syntaxes--language-definitions).\n\n\n## Acknowledgements\n\nThe `Odin.sublime-syntax`file was created by @gingerBill and is made availble from his repo here: [sublime-odin](https://github.com/odin-lang/sublime-odin/tree/master)\n\nAs well as being kind enough to create this syntax highlighting file, @gingerBill then went on and made a whole language and complier to go with!! Be sure to visit the [Odin](https://github.com/odin-lang/Odin) GitHub repository and give it a ⭐️ and then learn more about [Odin](https://odin-lang.org) and \"*enjoy programming again*\".\n\n\n## License\n\nThe files are provided under the MIT open source license. A copy of the \nMIT license file is [here](./LICENSE).\n\nThe files in the repository are licensed under the **MIT License** that also \nrespects the original licences used in @gingerBill's repo that when last checked is MIT \nas well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fodin-syntax-for-bat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremoons%2Fodin-syntax-for-bat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fodin-syntax-for-bat/lists"}