{"id":14989104,"url":"https://github.com/orionlee/codemirror-js-mixed","last_synced_at":"2025-04-12T01:21:20.478Z","repository":{"id":39625895,"uuid":"286599582","full_name":"orionlee/codemirror-js-mixed","owner":"orionlee","description":"Javascript-mixed mode for CodeMirror, supporting HTML/CSS highlighting in javascript codes","archived":false,"fork":false,"pushed_at":"2024-08-13T18:39:02.000Z","size":368,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T02:33:56.748Z","etag":null,"topics":["addon","codemirror","codemirror-mode","css","editor","html","javascript","syntax-highlighting","userscript"],"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/orionlee.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-08-10T23:31:10.000Z","updated_at":"2024-08-13T18:39:01.000Z","dependencies_parsed_at":"2023-02-06T10:46:12.316Z","dependency_job_id":"1f85fdb2-3df8-4d8d-9158-57e77f4676ba","html_url":"https://github.com/orionlee/codemirror-js-mixed","commit_stats":{"total_commits":39,"total_committers":4,"mean_commits":9.75,"dds":0.5384615384615384,"last_synced_commit":"b9f9e529f2ae0721a6d0aaacd6db05958b6dd043"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orionlee%2Fcodemirror-js-mixed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orionlee%2Fcodemirror-js-mixed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orionlee%2Fcodemirror-js-mixed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orionlee%2Fcodemirror-js-mixed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orionlee","download_url":"https://codeload.github.com/orionlee/codemirror-js-mixed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290033,"owners_count":21078923,"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":["addon","codemirror","codemirror-mode","css","editor","html","javascript","syntax-highlighting","userscript"],"created_at":"2024-09-24T14:17:42.370Z","updated_at":"2025-04-12T01:21:20.453Z","avatar_url":"https://github.com/orionlee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://img.shields.io/npm/v/codemirror-js-mixed?color=blue)](https://www.npmjs.com/package/codemirror-js-mixed)\n\n# Javascript-mixed mode for CodeMirror\n\nA language mode for [CodeMirror](https://codemirror.net/), support highlighting HTML/CSS in javascript codes.\n\n## Features\n- Detects and highlights HTML in strings / template strings. (for strings begin with a tag)\n    - HTML, highlights inner CSS / Javascript as well, e.g., highlights CSS for the text in `\u003cstyle\u003e` tags.\n- Highlights CSS for userscript's `GM_addStyle()`\n- Highlights arbitrary template strings as HTML / CSS by prepending an inline `/*html*/` and `/*css*/` hint respectively.\n\n![screenshot](https://user-images.githubusercontent.com/250644/87232467-299d0380-c374-11ea-80af-539d65248ed7.png)\n\n## Installation\nTo add it to your project, assuming `codemirror` has been installed:\n\n```\nnpm install codemirror-js-mixed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forionlee%2Fcodemirror-js-mixed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forionlee%2Fcodemirror-js-mixed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forionlee%2Fcodemirror-js-mixed/lists"}