{"id":24973908,"url":"https://github.com/graphieros/vue-hi-code","last_synced_at":"2026-03-15T22:13:57.777Z","repository":{"id":274640994,"uuid":"923590119","full_name":"graphieros/vue-hi-code","owner":"graphieros","description":"A simple and customizable code highlighter component for Vue 3 to showcase javascript snippets","archived":false,"fork":false,"pushed_at":"2025-02-02T15:53:37.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T06:30:35.493Z","etag":null,"topics":["code-highlight","code-snippets","component","snippets","vue3"],"latest_commit_sha":null,"homepage":"https://vue-hi-code.graphieros.com/","language":"Vue","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/graphieros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-01-28T14:22:05.000Z","updated_at":"2025-02-02T15:53:40.000Z","dependencies_parsed_at":"2025-01-28T15:11:32.933Z","dependency_job_id":"444725b2-52ea-4419-91e4-a96755555e96","html_url":"https://github.com/graphieros/vue-hi-code","commit_stats":null,"previous_names":["graphieros/vue-hi-code"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphieros%2Fvue-hi-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphieros%2Fvue-hi-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphieros%2Fvue-hi-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphieros%2Fvue-hi-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphieros","download_url":"https://codeload.github.com/graphieros/vue-hi-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249509495,"owners_count":21283591,"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":["code-highlight","code-snippets","component","snippets","vue3"],"created_at":"2025-02-03T19:24:38.787Z","updated_at":"2026-03-15T22:13:57.771Z","avatar_url":"https://github.com/graphieros.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-hi-code\n\n[![npm](https://img.shields.io/npm/v/vue-hi-code)](https://github.com/graphieros/vue-hi-code)\n[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/graphieros/vue-hi-code?tab=MIT-1-ov-file#readme)\n[![GitHub issues](https://img.shields.io/github/issues/graphieros/vue-hi-code)](https://github.com/graphieros/vue-hi-code/issues)\n[![npm](https://img.shields.io/npm/dt/vue-hi-code)](https://github.com/graphieros/vue-hi-code)\n\nA light Vue 3 component to display javascript snippets.\n\n```sh\nnpm i vue-hi-code\n```\n\n![image](https://github.com/user-attachments/assets/07707d06-8285-44a4-a607-192346dfd133)\n\n```js\nimport { VueHiCode } from \"vue-hi-code\";\nimport \"vue-hi-code/style.css\"; // Include the css\n\nconst content = `\ncosnt foo = function(param) {\n    return param + 1;\n}\n`;\n```\n\n```html\n\u003cVueHiCode :content=\"content\" language=\"javascript\" /\u003e\n```\n\n## Props\n\n| Name                 | Type                            | Required | Default                  |\n| -------------------- | ------------------------------- | -------- | ------------------------ |\n| backgroundColor      | string                          | no       | \"#2A2A2A\"                |\n| baseTextColor        | string                          | no       | \"#CCCCCC\"                |\n| borderRadius         | string                          | no       | \"0.3rem\"                 |\n| colorBrackets        | string                          | no       | \"#559AD3\"                |\n| colorComment         | string                          | no       | \"#8A8A8A\"                |\n| colorCssSelector     | string                          | no       | \"#D7BA7D\"                |\n| colorCurlyBrackets   | string                          | no       | \"#8A8A8A\"                |\n| colorError           | string                          | no       | \"#E46962\"                |\n| colorFunction        | string                          | no       | \"#DCDCAA\"                |\n| colorHtmlTag         | string                          | no       | \"#559AD3\"                |\n| colorJsReserved      | string                          | no       | \"#4ec9b0\"                |\n| colorKeywords        | string                          | no       | \"#B37BAE\"                |\n| colorLineNumber      | string                          | no       | \"#8A8A8A\"                |\n| colorNumber          | string                          | no       | \"#AEC6A1\"                |\n| colorParenthesis     | string                          | no       | \"#8A8A8A\"                |\n| colorString          | string                          | no       | \"#CD9077\"                |\n| colorVariableKeyword | string                          | no       | \"#559AD3\"                |\n| colorSpecial         | string                          | no       | \"#559AD3\"                |\n| content              | string                          | yes      |                          |\n| copyIconColor        | string                          | no       | \"#CCCCCC\"                |\n| copyIconSize         | number                          | no       | 20                       |\n| copyIconStrokeWidth  | number                          | no       | 1.5                      |\n| fontFamily           | string                          | no       | \"'Fira code', monospace\" |\n| fontSize             | string                          | no       | \"1rem\"                   |\n| language             | \"javascript\" or \"html\" or \"css\" | yes      |                          |\n| lineHeight           | string                          | no       | \"1.4rem\"                 |\n| padding              | string                          | no       | \"1rem\"                   |\n| showIcon             | boolean                         | no       | false                    |\n| title                | string                          | no       | \"\"                       |\n| tsTypesCustom        | string[]                        | no       | []                       |\n| withCopy             | boolean                         | no       | true                     |\n| withLineNumbers      | boolean                         | no       | false                    |\n\n## Emits\n\nUsing the props withCopy, a button is displayed on the top right of the component, which will copy the text content on click, and emit \"copy\" with the content.\n\n```html\n\u003cVueHiCode :content=\"content\" language=\"javascript\" @copy=\"copy\" /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphieros%2Fvue-hi-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphieros%2Fvue-hi-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphieros%2Fvue-hi-code/lists"}