{"id":17148722,"url":"https://github.com/oxoyo/x-highlight-vue","last_synced_at":"2025-09-23T04:32:45.558Z","repository":{"id":32947626,"uuid":"142771096","full_name":"OXOYO/X-Highlight-Vue","owner":"OXOYO","description":"A Vue.js plugin use for Syntax highlighting.","archived":false,"fork":false,"pushed_at":"2022-12-08T08:34:20.000Z","size":1936,"stargazers_count":3,"open_issues_count":22,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T02:51:15.226Z","etag":null,"topics":["vue-highlight"],"latest_commit_sha":null,"homepage":"http://oxoyo.co/X-Highlight-Vue/","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/OXOYO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-29T15:09:36.000Z","updated_at":"2022-01-23T09:55:23.000Z","dependencies_parsed_at":"2023-01-14T22:47:20.844Z","dependency_job_id":null,"html_url":"https://github.com/OXOYO/X-Highlight-Vue","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/OXOYO%2FX-Highlight-Vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXOYO%2FX-Highlight-Vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXOYO%2FX-Highlight-Vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXOYO%2FX-Highlight-Vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OXOYO","download_url":"https://codeload.github.com/OXOYO/X-Highlight-Vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248709591,"owners_count":21149179,"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":["vue-highlight"],"created_at":"2024-10-14T21:29:37.428Z","updated_at":"2025-09-23T04:32:40.529Z","avatar_url":"https://github.com/OXOYO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# X-Highlight-Vue\n\n[![Version](https://img.shields.io/npm/v/x-highlight.svg)](https://www.npmjs.com/package/x-highlight)\n[![License](https://img.shields.io/npm/l/x-highlight.svg)](https://www.npmjs.com/package/x-highlight)\n[![NPM downloads](http://img.shields.io/npm/dm/x-highlight.svg)](https://npmjs.org/package/x-highlight)\n[![Downloads](https://img.shields.io/npm/dt/x-highlight.svg)](https://www.npmjs.com/package/x-highlight)\n![JS gzip size](http://img.badgesize.io/https://unpkg.com/x-highlight/dist/XHighlight.js?compression=gzip\u0026label=gzip%20size:%20JS)\n\n\u003e A Vue.js plugin use for Syntax highlighting.\n\n\n## Example\n\n[Demo](https://oxoyo.github.io/X-Highlight-Vue/)\n\n``` bash\n# git clone https://github.com/OXOYO/X-Highlight-Vue.git\n\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run dev\n```\n\n## Usage\n\n  Packages install\n  ``` bash\n  npm install x-highlight --save\n  ```\n\n  main.js\n  ```bash\n  import XHighlight from 'x-highlight'\n  import 'x-highlight/dist/css/XHighlight.css'\n  // highlight theme\n  import 'highlight.js/styles/zenburn.css'\n\n  Vue.use(XHighlight)\n\n  ```\n\n  demo.vue\n  ```bash\n  \u003cXHighlight\n    class=\"x-highlight\"\n    :title=\"options.title\"\n    :lang=\"options.lang\"\n    :show=\"options.show\"\n    :tool=\"options.tool\"\n    :maxHeight=\"options.maxHeight\"\n    :locale=\"options.locale\"\n    :data=\"options.data\"\n  \u003e\n  \u003c/XHighlight\u003e\n  ```\n\n## Options\n\n| Prop | Type | Default | Describe |\n|---|---|---|---|\n| title | String | '' |  |\n| lang | String | 'JavaScript' |  |\n| show | Array | ['title', 'lang', 'num', 'nodata'] |  |\n| tool | Array | ['full-screen', 'select-all', 'copy'] |  |\n| maxHeight | Number |  |  |\n| locale | String | 'zh' |  |\n| nodata | String | 暂无数据... |  |\n| data |  | '' |  |\n\n\n## License\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxoyo%2Fx-highlight-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxoyo%2Fx-highlight-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxoyo%2Fx-highlight-vue/lists"}