{"id":13448656,"url":"https://github.com/atian25/vscode-copy-syntax","last_synced_at":"2025-09-08T19:41:58.793Z","repository":{"id":151182015,"uuid":"69168929","full_name":"atian25/vscode-copy-syntax","owner":"atian25","description":"copy your code with syntax highlight to clipboard, can be used at your slide.","archived":false,"fork":false,"pushed_at":"2017-03-04T00:53:12.000Z","size":1066,"stargazers_count":27,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T09:18:20.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/atian25.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-09-25T14:23:03.000Z","updated_at":"2023-07-14T01:47:31.000Z","dependencies_parsed_at":"2024-01-21T04:40:20.831Z","dependency_job_id":"d397663b-62fb-4323-a0d2-51e78d9bcd89","html_url":"https://github.com/atian25/vscode-copy-syntax","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/atian25/vscode-copy-syntax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atian25%2Fvscode-copy-syntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atian25%2Fvscode-copy-syntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atian25%2Fvscode-copy-syntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atian25%2Fvscode-copy-syntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atian25","download_url":"https://codeload.github.com/atian25/vscode-copy-syntax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atian25%2Fvscode-copy-syntax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231433,"owners_count":25245585,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-07-31T05:01:51.853Z","updated_at":"2025-09-08T19:41:58.760Z","avatar_url":"https://github.com/atian25.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# copy-syntax\n\n[![Marketplace Version](http://vsmarketplacebadge.apphb.com/version/atian25.copy-syntax.svg)](https://marketplace.visualstudio.com/items?itemName=atian25.copy-syntax)\n[![Installs](http://vsmarketplacebadge.apphb.com/installs/atian25.copy-syntax.svg)](https://marketplace.visualstudio.com/items?itemName=atian25.copy-syntax)\n[![Rating](http://vsmarketplacebadge.apphb.com/rating/atian25.copy-syntax.svg)](https://marketplace.visualstudio.com/items?itemName=atian25.copy-syntax)\n[![Build Status](https://img.shields.io/travis/atian25/vscode-copy-syntax.svg)](https://travis-ci.org/atian25/vscode-copy-syntax)\n\ncopy your code with syntax highlight, can be used at your slide.\n\n\u003e Now with vscode 1.10 it supports copy syntax without extra plugin.\n\u003e https://code.visualstudio.com/updates/v1_10#_copy-with-syntax-highlighting\n\u003e But it's copy as HTML format, maybe not work with keynote.\n\u003e This Plugin copy as RTF format to make keynote happy.\n\n![Usage](https://github.com/atian25/vscode-copy-syntax/raw/master/usage.png)\n\n## Features\n\n  - Copy code as RTF\n  - Auto detect language: `markdown syntax` -\u003e `vscode languageId` -\u003e `file extension`\n  - Support language to highlight\n  - Use [pygmentize](http://pygments.org/docs/cmdline/) and [copy-paste](https://github.com/xavi-/node-copy-paste)\n\n  \u003e Known issues: Can't work in windows until `copy-paste` support [this feature](https://github.com/xavi-/node-copy-paste/issues/52)\n\n## Usages\n\n![Usage](https://github.com/atian25/vscode-copy-syntax/raw/master/usage.gif)\n  - Open code file or select code snippet in Text Editor, then press `F1` and then select/type `Copy Syntax`, or right click the Text Editor and then click `Copy Syntax` in context menu, the code with syntax highlight will copy to clipboard.\n  - To select language to run, use press `F1` and then select/type `Copy Syntax as ...`, then type the language: e.g `php, js, bash...`\n\n\n## Installation\n\n- Press `F1` in VSCode, type `ext install` and then look for `copy-syntax`.\n- `python` is required by `pygmentize`\n\n## Configuration\n\n  - `copy-syntax.defaults.lang`: the default language is `js`\n  - `copy-syntax.defaults.format`: currently is only support `rtf`, feel free to PR.\n  - `copy-syntax.showMessage`: set to `false` to skip boring success message\n  - `copy-syntax.formatters.rtf`: RtfFormatter options\n    - `fonsize` is specified in half points. The default is 24 half-points, giving a size 12 font.\n    - see http://pygments.org/docs/formatters/#RtfFormatter\n\n    ```json\n    {\n      \"copy-syntax.defaults.lang\": \"js\",\n      \"copy-syntax.showMessage\": false,\n      \"copy-syntax.formatters.rtf\": {\n        \"style\": \"default\",\n        \"fontsize\": 24,\n        \"fontface\": \"Monaco\"\n      }\n    }\n    ```\n\n## Issues\nSubmit the [issues](https://github.com/atian25/vscode-copy-syntax/issues) if you find any bug or have any suggestion.\n\n## Contribution\nFork the [repository](https://github.com/atian25/vscode-copy-syntax) and submit pull requests.\n\n## Release Notes\nsee [CHANGELOG](https://github.com/atian25/vscode-copy-syntax/blob/master/CHANGELOG.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatian25%2Fvscode-copy-syntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatian25%2Fvscode-copy-syntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatian25%2Fvscode-copy-syntax/lists"}