{"id":18554677,"url":"https://github.com/ioing/ioing-components-code-highlight","last_synced_at":"2025-05-15T12:08:49.795Z","repository":{"id":102300515,"uuid":"102198730","full_name":"ioing/ioing-components-code-highlight","owner":"ioing","description":"IOING - 代码高亮组件","archived":false,"fork":false,"pushed_at":"2017-09-02T14:01:43.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T11:14:36.405Z","etag":null,"topics":["code-highlight","html","js","webcomponents"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ioing.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-02T13:34:02.000Z","updated_at":"2017-09-02T13:55:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c1be210-b0a7-496b-8f3d-13d3d2e51f36","html_url":"https://github.com/ioing/ioing-components-code-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/ioing%2Fioing-components-code-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioing%2Fioing-components-code-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioing%2Fioing-components-code-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioing%2Fioing-components-code-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ioing","download_url":"https://codeload.github.com/ioing/ioing-components-code-highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337606,"owners_count":22054254,"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","html","js","webcomponents"],"created_at":"2024-11-06T21:23:22.608Z","updated_at":"2025-05-15T12:08:49.768Z","avatar_url":"https://github.com/ioing.png","language":"JavaScript","readme":"# IOING - 代码高亮组件\n\t\n\u003ctable\u003e\n \u003cthead\u003e\n  \u003ctr\u003e\n   \u003ctd\u003e指令\u003c/td\u003e\n   \u003ctd\u003e值\u003c/td\u003e\n   \u003ctd\u003e描述\u003c/td\u003e\n  \u003c/tr\u003e\n \u003c/thead\u003e\n \u003ctbody\u003e\n  \u003ctr\u003e\n   \u003ctd\u003etype\u003c/td\u003e\n   \u003ctd\u003ehtml/xml/mathml/svg/js/css/python/ruby/powershell/bash\u003c/td\u003e\n   \u003ctd\u003e设定代码语言类型\u003c/td\u003e\n  \u003c/tr\u003e\n \u003c/tbody\u003e\n\u003c/table\u003e\n\n```html\n\u003ccode-highlight type=\"html\"\u003e\n    \u003cul\u003e\n        \u003cli\u003e\u003cspan\u003e1\u003c/span\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cspan\u003e2\u003c/span\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cspan\u003e3\u003c/span\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cspan\u003e4\u003c/span\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cspan\u003e5\u003c/span\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cspan\u003e6\u003c/span\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\u003c/code-highlight\u003e\n```\n```html\n\u003ccode-highlight type=\"css\"\u003e\n    div {\n        display: flex;\n        transform: scale([s]);\n        box-shadow: 0 0 5dp red;\n        border-radius: 6dp;\n    }\n\u003c/code-highlight\u003e\n```\n```html\n\u003ccode-highlight type=\"js\"\u003e\n    function fn () {\n        ...\n    }\n\u003c/code-highlight\u003e\n```\n\n该插件使用 Rrism js 库实现语法高亮，如若添加更多语法支持，请访问这里：[http://prismjs.com/](http://prismjs.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioing%2Fioing-components-code-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fioing%2Fioing-components-code-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioing%2Fioing-components-code-highlight/lists"}