{"id":13824375,"url":"https://github.com/point-hub/vue-highlight","last_synced_at":"2025-04-14T23:24:10.617Z","repository":{"id":56013707,"uuid":"312987044","full_name":"point-hub/vue-highlight","owner":"point-hub","description":"Vue 3 directive for highlight.js","archived":false,"fork":false,"pushed_at":"2021-05-08T04:06:15.000Z","size":538,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T11:21:19.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/point-hub.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":"2020-11-15T08:18:22.000Z","updated_at":"2023-12-07T09:46:36.000Z","dependencies_parsed_at":"2022-08-15T11:30:42.614Z","dependency_job_id":null,"html_url":"https://github.com/point-hub/vue-highlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/point-hub%2Fvue-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/point-hub%2Fvue-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/point-hub%2Fvue-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/point-hub%2Fvue-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/point-hub","download_url":"https://codeload.github.com/point-hub/vue-highlight/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504171,"owners_count":21115130,"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":[],"created_at":"2024-08-04T09:01:01.752Z","updated_at":"2025-04-14T23:24:10.563Z","avatar_url":"https://github.com/point-hub.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"# @point-hub/vue-highlight\n\nVue 3 directive for highlight.js\n\n## Installation\n```\nyarn add @point-hub/vue-highlight\n\nor\n\nnpm install @point-hub/vue-highlight --save\n```\n\n## Usage\nImport plugin in your main.js file\n```\nimport Highlight from \"@point-hub/vue-highlight\";\nimport \"highlight.js/styles/atom-one-dark.css\";\n\n// Import Languages\nimport javascript from \"highlight.js/lib/languages/javascript\";\nimport html from \"highlight.js/lib/languages/xml\";\n\n// Register Language\nHighlight.registerLanguage(\"html\", html);\nHighlight.registerLanguage(\"javascript\", javascript);\n\nconst app = createApp(App);\napp.use(Highlight.plugin);\napp.mount(\"#app\");\n```\n\nAnd use it into your view\n```\n\u003cpre\u003e\n  \u003ccode v-highlight class=\"javascript\"\u003e\nfunction say(text) {\nalert(text)\n}\n\nsay('Hello')\n  \u003c/code\u003e\n\u003c/pre\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoint-hub%2Fvue-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoint-hub%2Fvue-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoint-hub%2Fvue-highlight/lists"}