{"id":19153717,"url":"https://github.com/coldspirit0/synhi","last_synced_at":"2026-06-23T05:31:39.291Z","repository":{"id":137618099,"uuid":"276816664","full_name":"ColdSpirit0/synhi","owner":"ColdSpirit0","description":"Simple syntax highlighter","archived":false,"fork":false,"pushed_at":"2020-07-03T22:51:44.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T21:22:19.030Z","etag":null,"topics":["easy-to-use","javascript","simple","syntax","syntax-highlighter","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","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/ColdSpirit0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-03T05:38:04.000Z","updated_at":"2021-01-15T17:38:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c63cdf8-2b1f-4b64-9175-362ede632b78","html_url":"https://github.com/ColdSpirit0/synhi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ColdSpirit0/synhi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdSpirit0%2Fsynhi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdSpirit0%2Fsynhi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdSpirit0%2Fsynhi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdSpirit0%2Fsynhi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ColdSpirit0","download_url":"https://codeload.github.com/ColdSpirit0/synhi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdSpirit0%2Fsynhi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34677382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["easy-to-use","javascript","simple","syntax","syntax-highlighter","syntax-highlighting"],"created_at":"2024-11-09T08:24:03.645Z","updated_at":"2026-06-23T05:31:39.276Z","avatar_url":"https://github.com/ColdSpirit0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synhi - simple syntax highlighter\n\nSynhi is a tool in one function to create own syntax themes.\n\n## How to use:\n\n### 1. Insert code in your project\nThat's all code you need: [synhi.js](synhi.js).\n\n### 2. Add CSS classes you need\n\nExample:\n\n```css\n.hl_keyword {color: blue;}\n```\n\n### 3. Highlight your text\n\nCall the function and pass element with text, regex rule to find it and class that will highlight the text.\n\n```javascript\nhighlight(target_element, /(keyword)/, \"hl_keyword\");\n```\n### 4. Enjoy\n\nThat result you will get:\n\n![Example image](example.png)\n\n### Demo with ini syntax\nThis example does not cover the entire ini syntax; it is made to show the capabilities of the tool.\n\nhttps://jsfiddle.net/ColdSpirit/6v74p8x5/\n\nDemo backup: [demo_ini.html](demo_ini.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldspirit0%2Fsynhi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoldspirit0%2Fsynhi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldspirit0%2Fsynhi/lists"}