{"id":28378924,"url":"https://github.com/vue-terminal/syntax-highlight","last_synced_at":"2025-07-18T22:02:40.722Z","repository":{"id":65337277,"uuid":"572041622","full_name":"vue-terminal/syntax-highlight","owner":"vue-terminal","description":"Syntax highlight component for vue-termui.","archived":false,"fork":false,"pushed_at":"2022-12-28T15:09:06.000Z","size":227,"stargazers_count":39,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T04:35:31.576Z","etag":null,"topics":["syntax-highlight","terminal","vue","vue-termui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vue-terminal.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}},"created_at":"2022-11-29T12:38:29.000Z","updated_at":"2025-03-30T00:50:05.000Z","dependencies_parsed_at":"2023-01-31T06:46:01.720Z","dependency_job_id":null,"html_url":"https://github.com/vue-terminal/syntax-highlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vue-terminal/syntax-highlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-terminal%2Fsyntax-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-terminal%2Fsyntax-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-terminal%2Fsyntax-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-terminal%2Fsyntax-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vue-terminal","download_url":"https://codeload.github.com/vue-terminal/syntax-highlight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-terminal%2Fsyntax-highlight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265844206,"owners_count":23837542,"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":["syntax-highlight","terminal","vue","vue-termui"],"created_at":"2025-05-30T02:07:38.257Z","updated_at":"2025-07-18T22:02:40.698Z","avatar_url":"https://github.com/vue-terminal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# syntax-highlight\n\nSyntax highlight component for [vue-termui](https://github.com/vue-terminal/vue-termui).\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cimg width=\"380\"  src=\"./example.gif\"\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\u003c/div\u003e\n\n## Install\n\n```shell\nnpm install @vue-termui/syntax-highlight\n```\n\n## Usage\n\n```html\n\u003cscript lang=\"ts\" setup\u003e\n  improt { TuiBox } from 'vue-termui'\n  import SyntaxHighlight from '@vue-termui/syntax-highlight'\n\n  const code = `const hello = 'world'`\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cTuiBox\u003e\n    \u003cSyntaxHighlight :code=\"code\" /\u003e\n  \u003c/TuiBox\u003e\n\u003c/template\u003e\n```\n\n## Props\n\n### code\n\n- Type: `string`\n\nSource code to highlight.\n\n### lang\n\n- Type: [Lang](https://github.com/shikijs/shiki/blob/main/docs/languages.md)\n\n### theme\n\n- Type: [Theme](https://github.com/shikijs/shiki/blob/main/docs/themes.md)\u003cbr\u003e\n\n## Credits\n\nSyntax Highlight is based on [Shiki](https://github.com/shikijs/shiki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvue-terminal%2Fsyntax-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvue-terminal%2Fsyntax-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvue-terminal%2Fsyntax-highlight/lists"}