{"id":18057281,"url":"https://github.com/m4cs/snipit","last_synced_at":"2026-03-11T16:01:29.329Z","repository":{"id":96218394,"uuid":"256841624","full_name":"M4cs/snipit","owner":"M4cs","description":"Generate code snippets from files and clipboard.","archived":false,"fork":false,"pushed_at":"2023-05-01T21:24:10.000Z","size":53,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T04:41:47.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/M4cs.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":"2020-04-18T19:58:12.000Z","updated_at":"2024-08-12T20:00:25.000Z","dependencies_parsed_at":"2025-04-11T04:41:56.247Z","dependency_job_id":"c27b33f0-214e-4f89-bd51-72446eb066d0","html_url":"https://github.com/M4cs/snipit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/M4cs/snipit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fsnipit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fsnipit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fsnipit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fsnipit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M4cs","download_url":"https://codeload.github.com/M4cs/snipit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4cs%2Fsnipit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30386972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-31T02:07:15.646Z","updated_at":"2026-03-11T16:01:29.323Z","avatar_url":"https://github.com/M4cs.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snipit\nGenerate code snippets from files and clipboard.\n*This is still in very early development and simply in an Alpha stage.*\n\n\u003cp align=\"center\"\u003e\n  \u003ca align=\"center\"\u003e\u003cimg src=\"https://mbcdn.sfo2.cdn.digitaloceanspaces.com/Snippet_6124.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Requirements:\n\n- Python 3.6\n- Firefox (Get a newer version for best results, need geckodriver for Selenium)\n- Selenium\n\n### Installation:\n\nGrab dependencies:\n\n```\npip install -r requirements.txt\n```\n\nMake sure you have Geckodriver installed and available in your path! If you installed the Firefox browser you should be all set.\n\n### Usage:\n\n```\npython snipit.py [-h] [-i INPUT] [-o OUTPUT] [-l LANGUAGE] [-wh WINDOW_HEIGHT]\n                 [-ww WINDOW_WIDTH] [-cb] [-bc BACKGROUND_COLOR]\n                 [-bi BACKGROUND_IMAGE] [-cc CODEBOX_COLOR] [-ss SYNTAX_STYLE]\n                 [-sc STYLE_CONFIG] [-z ZOOM]\n```\n\nTo input a file use:\n\n```\npython snipit.py -i /path/to/file -l language\n```\n\nTo input from clipboard use:\n\n```\npython snipit.py -cb -l language\n```\n\nTo pull from a config use:\n```\npython snipit.py -sc config.json -cb -l python\n```\n\n**Syntax Styles == Highlight.JS CSS Colors. You can find a list of them here: https://github.com/highlightjs/highlight.js/tree/master/src/styles**\n\n### Style Configs:\n\nYou can use a JSON file to share style configs for others or to use for yourself to keep track of easy configurations. Any values in these configs will override values you pass as an argument!\n\nExample Style:\n```json\n{\n    \"background-color\": \"292929\",\n    \"codebox-color\": \"707070\",\n    \"zoom\": 1.5,\n    \"syntax-style\": \"a11y-light\"\n}\n```\n\n### Options as of now:\n\n```\n  -h, --help            show this help message and exit\n  -i INPUT, --input INPUT\n                        Generate Snippet From Input File\n  -o OUTPUT, --output OUTPUT\n                        Output File To Store Image. No need for file ext.\n  -l LANGUAGE, --language LANGUAGE\n                        Language for Syntax Highlighting. Supports\n                        highlight.js\n  -wh WINDOW_HEIGHT, --window-height WINDOW_HEIGHT\n                        Browser Height. Default: 1200\n  -ww WINDOW_WIDTH, --window-width WINDOW_WIDTH\n                        Browser Width. Default: 1600\n  -cb, --clip-board     Generate Snippet From Clibboard\n  -bc BACKGROUND_COLOR, --background-color BACKGROUND_COLOR\n                        Background Color For HTML. Uses Hex Codes.\n  -bi BACKGROUND_IMAGE, --background-image BACKGROUND_IMAGE\n                        Path to background image for snippet.\n  -cc CODEBOX_COLOR, --codebox-color CODEBOX_COLOR\n                        Background Color for Codebox. Uses Hex Codes.\n  -ss SYNTAX_STYLE, --syntax-style SYNTAX_STYLE\n                        Syntax Color Style for Code. Supports highlight.js\n                        styles\n  -sc STYLE_CONFIG, --style-config STYLE_CONFIG\n                        Pass StyleConfig.json File As Snippet Style.\n  -z ZOOM, --zoom ZOOM  Amount to Use for Zoom\n  ```\n  \n  \n  ## Credits:\n  \n  [highlight.js](https://highlightjs.org) - Syntax highlighting and CSS\n  \n  [bulma.io](https://bulma.io) - CSS Components\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4cs%2Fsnipit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4cs%2Fsnipit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4cs%2Fsnipit/lists"}