{"id":17460649,"url":"https://github.com/oil3/codecolors-quicklook-syntax-highlighting","last_synced_at":"2025-07-19T06:03:29.579Z","repository":{"id":257904704,"uuid":"873124409","full_name":"Oil3/CodeColors-Quicklook-Syntax-Highlighting","owner":"Oil3","description":"Very fast macOS extension for coloring code, supports every (60+) uti types. Might be the fastest implementation, and different because 100% Swift: no rtf nor html.","archived":false,"fork":false,"pushed_at":"2025-02-23T05:22:33.000Z","size":7750,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"oil3","last_synced_at":"2025-04-19T19:58:08.121Z","etag":null,"topics":["macos","pycharm","python","quicklook","quicklook-extension","quicklook-plugin","swift","swiftui","syntax-coloring","syntax-highlighting","uti","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Oil3.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,"zenodo":null}},"created_at":"2024-10-15T16:34:05.000Z","updated_at":"2025-03-16T00:40:25.000Z","dependencies_parsed_at":"2025-04-24T00:31:55.950Z","dependency_job_id":null,"html_url":"https://github.com/Oil3/CodeColors-Quicklook-Syntax-Highlighting","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.375,"last_synced_commit":"2b247867d7e0faebc67fe8f3f311064e3d9cdc83"},"previous_names":["oil3/codecolors-quicklook-syntax-highlighting"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Oil3/CodeColors-Quicklook-Syntax-Highlighting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FCodeColors-Quicklook-Syntax-Highlighting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FCodeColors-Quicklook-Syntax-Highlighting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FCodeColors-Quicklook-Syntax-Highlighting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FCodeColors-Quicklook-Syntax-Highlighting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oil3","download_url":"https://codeload.github.com/Oil3/CodeColors-Quicklook-Syntax-Highlighting/tar.gz/refs/heads/oil3","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FCodeColors-Quicklook-Syntax-Highlighting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265895877,"owners_count":23845401,"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":["macos","pycharm","python","quicklook","quicklook-extension","quicklook-plugin","swift","swiftui","syntax-coloring","syntax-highlighting","uti","xcode"],"created_at":"2024-10-18T06:00:24.934Z","updated_at":"2025-07-19T06:03:29.535Z","avatar_url":"https://github.com/Oil3.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/90744f44-008e-4ce8-b3f5-7de635a67b16\" height=\"128\"\u003e\n  \u003ch1 align=\"center\"\u003e Code Colors \u003c/h1\u003e\n\u003c/p\u003e\n\n**Code Colors - Quicklook Preview** is a free, very fast Quicklook Extension for macOS.    \nIt is different than others because it uses new SwiftUI Text capabilities: no html, no rtf, no js.   \nVery fast as in _breaks the sound barrier_: it's opened before the sound of your spacebar/click ends.  [`*`](https://github.com/Oil3/CodeColors-Quicklook-Syntax-Highlighting/tree/oil3#sound-on-truth-of-breaking-the-sound-barrier)   \n\n### Features\n- **Any File Types**: More than 60 extensions, such as `.swift`, `.py`, `.yaml`, `.xml`, `.json`, `.c`, `.h`, `.mm`, `.1`, `.gradle`... etc, as well as files without extension. But not Markdown. [Info.plit full list](https://github.com/Oil3/CodeColors-Quicklook-Syntax-Highlighting/blob/oil3/QuickCodeColorLook/Info.plist). \n\n- **Syntax Highlighting**:  Still basic.\n- **Lazy Loading**: Loads lines per 96KB chunks for immediate viewing, stops when view disappears.\n- **Pure Swift**:  100% Swift with only the code that is necessary: the minimum and nothing external.\n- **Main-Thread Offloading**: All file loading and processing are done off the main thread, safeguarding against system freezes.\n- **As safe as your file**: Sandboxed, hardened, notarized, doesn't require internet or any permission whatsoever,  doesn't run the files, but applies formatting on strings that match a pattern.\n- **No File Associations**: Doesn't replace the default app for opening files, doesn't interfere with workflow.  \n\n\n\n### Download from Releases or from the repository   \n\nDirect download latest [Universal binary (Silicon and Intel)](https://github.com/Oil3/CodeColors-Quicklook-Syntax-Highlighting/releases/download/LatestFeb2025UniversalBinary/CodeColors.2025Feb.Universal.Binary.zip).\n  \n## Install  \n\u003eLaunch the app once. This registers the extension as the extension itself stays within the app bundle.  \n\n## Uninstall  \n\u003eDelete the app.  \n\n## Update  \n\u003eReplace the older app with the newer app.  MacOS looks for the extension in the app: if app is moved, a relaunch might be needed. \n\n\n\n\n  \n![ss1_lanczos](https://github.com/user-attachments/assets/df6605b5-b4e8-45ed-88af-60a3d98997ab)\n\n\n### Issues/todo:  \nThe first priority _was_ to handle a _test file with 23millions characters in 200thousands  lines_, with immediate render, no freeze and a quick memory release.  \nNow the needs are:  \n- Implementing the logic for customizing the colors which is God willing for next update; right now these are just my colors.\n- Fixing an issue where a negative number doesn't have its `-` sign colored.\n- import profiles\n- Markdown is not in the list to not interfere until we have the settings to choose which extension to ignore.\n\n## Sound-on truth of breaking the sound barrier\n\n  [Screen Recording 2025-02-21 at 7.57.07 P720M (1).webm](https://github.com/user-attachments/assets/6b0b2024-b001-4179-9e9f-dca328691eca)  \n  \n  \n _a mac is a mac and it needs to stay comfortable._\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foil3%2Fcodecolors-quicklook-syntax-highlighting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foil3%2Fcodecolors-quicklook-syntax-highlighting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foil3%2Fcodecolors-quicklook-syntax-highlighting/lists"}