{"id":19273715,"url":"https://github.com/yusufshakeel/dycodehighlighter","last_synced_at":"2025-07-23T02:05:16.921Z","repository":{"id":57217539,"uuid":"112000777","full_name":"yusufshakeel/dyCodeHighlighter","owner":"yusufshakeel","description":"Highlight code in the web page.","archived":false,"fork":false,"pushed_at":"2017-12-02T09:51:13.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T20:44:24.519Z","etag":null,"topics":["code","highlighter","javascript"],"latest_commit_sha":null,"homepage":"https://dyclassroom.com/dycodehighlighter/documentation","language":"HTML","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/yusufshakeel.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":"2017-11-25T12:09:25.000Z","updated_at":"2025-02-08T03:14:06.000Z","dependencies_parsed_at":"2022-08-28T21:00:40.846Z","dependency_job_id":null,"html_url":"https://github.com/yusufshakeel/dyCodeHighlighter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/yusufshakeel/dyCodeHighlighter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2FdyCodeHighlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2FdyCodeHighlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2FdyCodeHighlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2FdyCodeHighlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusufshakeel","download_url":"https://codeload.github.com/yusufshakeel/dyCodeHighlighter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2FdyCodeHighlighter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266604009,"owners_count":23954725,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","highlighter","javascript"],"created_at":"2024-11-09T20:43:55.278Z","updated_at":"2025-07-23T02:05:16.898Z","avatar_url":"https://github.com/yusufshakeel.png","language":"HTML","funding_links":["https://www.paypal.me/yusufshakeel"],"categories":[],"sub_categories":[],"readme":"# dyCodeHighlighter\nHighlight code in the web page.\n\n# Status\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/yusufshakeel/dyCodeHighlighter)\n[![npm version](https://img.shields.io/badge/npm-1.3.2-blue.svg)](https://www.npmjs.com/package/dycodehighlighter)\n[![](https://data.jsdelivr.com/v1/package/npm/dycodehighlighter/badge)](https://www.jsdelivr.com/package/npm/dycodehighlighter)\n\n# Documentation\n[Click here](https://www.dyclassroom.com/dycodehighlighter/documentation) for the project documentation.\n\n# Getting Started\n* [Download](https://github.com/yusufshakeel/dyCodeHighlighter/releases) the latest release of this project.\n* Clone the repo: `git clone https://github.com/yusufshakeel/dyCodeHighlighter.git`\n* Install with npm: `npm install dycodehighlighter`\n* From jsDelivr CDN: `https://www.jsdelivr.com/package/npm/dycodehighlighter`\n\n# How to use?\nInclude the Javascript and Stylesheet file from the `dist` directory.\n\nThen call the `init()` method of `dyCodeHighlighter`.\n\nSample:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003ctitle\u003edyCodeHighlighter\u003c/title\u003e\n    \u003c!-- dyCodeHighlighter stylesheet --\u003e\n    \u003clink rel=\"stylesheet\" href=\"path/to/dist/css/dycodehighlighter.min.css\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \n    \u003cpre class='dyCodeHighlighter'\u003e\n      \u003ccode\u003e\n        // some code goes here...\n      \u003c/code\u003e\n    \u003c/pre\u003e\n\n    \u003c!-- dyCodeHighlighter javascript --\u003e\n    \u003cscript src=\"path/to/dist/js/dycodehighlighter.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003edyCodeHighlighter.init();\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n# Features\n* Style `pre.dyCodeHighlighter code` content\n* Show line numbers\n* Highlight lines\n* Show header info like: total lines and filename\n* Start line number from a custom integer value like -10, 0, 10 etc.\n* Theme: blue, choco, dark, gray\n* Custom style\n\n\n# License\nIt's free and released under [MIT License](https://github.com/yusufshakeel/dyCodeHighlighter/blob/master/LICENSE) Copyright (c) 2017 Yusuf Shakeel\n\n# Donate\nFeeling generous :-) Buy me a cup of tea.\n\n[Donate via PayPal](https://www.paypal.me/yusufshakeel)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusufshakeel%2Fdycodehighlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusufshakeel%2Fdycodehighlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusufshakeel%2Fdycodehighlighter/lists"}