{"id":13402657,"url":"https://github.com/PrismJS/prism","last_synced_at":"2025-03-14T08:30:56.749Z","repository":{"id":37401079,"uuid":"4979467","full_name":"PrismJS/prism","owner":"PrismJS","description":"Lightweight, robust, elegant syntax highlighting.","archived":false,"fork":false,"pushed_at":"2025-03-10T20:27:46.000Z","size":14425,"stargazers_count":12478,"open_issues_count":429,"forks_count":1316,"subscribers_count":119,"default_branch":"master","last_synced_at":"2025-03-10T21:44:29.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://prismjs.com","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/PrismJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-07-10T19:47:14.000Z","updated_at":"2025-03-10T18:07:33.000Z","dependencies_parsed_at":"2023-02-15T05:31:23.768Z","dependency_job_id":"a6ec66d6-00c4-4af5-ad80-7adf76a84fb6","html_url":"https://github.com/PrismJS/prism","commit_stats":{"total_commits":2993,"total_committers":410,"mean_commits":7.3,"dds":0.7340461075843635,"last_synced_commit":"59e5a3471377057de1f401ba38337aca27b80e03"},"previous_names":["leaverou/prism"],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrismJS%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrismJS%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrismJS%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrismJS%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrismJS","download_url":"https://codeload.github.com/PrismJS/prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243547296,"owners_count":20308683,"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":[],"created_at":"2024-07-30T19:01:19.039Z","updated_at":"2025-03-14T08:30:55.922Z","avatar_url":"https://github.com/PrismJS.png","language":"JavaScript","readme":"# [Prism](https://prismjs.com/)\n\n[![Build Status](https://github.com/PrismJS/prism/workflows/CI/badge.svg)](https://github.com/PrismJS/prism/actions)\n[![npm](https://img.shields.io/npm/dw/prismjs.svg)](https://www.npmjs.com/package/prismjs)\n\nPrism is a lightweight, robust, and elegant syntax highlighting library. It's a spin-off project from [Dabblet](https://dabblet.com/).\n\nYou can learn more on [prismjs.com](https://prismjs.com/).\n\n[Why another syntax highlighter?](https://lea.verou.me/2012/07/introducing-prism-an-awesome-new-syntax-highlighter/#more-1841)\n\n[More themes for Prism!](https://github.com/PrismJS/prism-themes)\n\n## Contribute to Prism!\n\n### **Important Notice**\n\nWe are currently working on [Prism v2](https://github.com/PrismJS/prism/discussions/3531) and will only accept security-relevant PRs for the time being.\n\nOnce work on Prism v2 is sufficiently advanced, we will accept PRs again. This will be announced on our [Discussion](https://github.com/PrismJS/prism/discussions) page and mentioned in the [roadmap discussion](https://github.com/PrismJS/prism/discussions/3531).\n\n\u003cdetails\u003e\n\u003csummary\u003ePrism v1 contributing notes\u003c/summary\u003e\n\nPrism depends on community contributions to expand and cover a wider array of use cases. If you like it, consider giving back by sending a pull request. Here are a few tips:\n\n- Read the [documentation](https://prismjs.com/extending.html). Prism was designed to be extensible.\n- Do not edit `prism.js`, it’s just the version of Prism used by the Prism website and is built automatically. Limit your changes to the unminified files in the `components/` folder. `prism.js` and all minified files are generated by our build system (see below).\n- Use `npm ci` to install Prism's dependencies. Do not use `npm install` because it will cause non-deterministic builds.\n- The build system uses [gulp](https://github.com/gulpjs/gulp) to minify the files and build `prism.js`. With all of Prism's dependencies installed, you just need to run the command `npm run build`.\n- Please follow the code conventions used in the files already. For example, I use [tabs for indentation and spaces for alignment](http://lea.verou.me/2012/01/why-tabs-are-clearly-superior/). Opening braces are on the same line, closing braces on their own line regardless of construct. There is a space before the opening brace. etc etc.\n- Please try to err towards more smaller PRs rather than a few huge PRs. If a PR includes changes that I want to merge and also changes that I don't, handling it becomes difficult.\n- My time is very limited these days, so it might take a long time to review bigger PRs (small ones are usually merged very quickly), especially those modifying the Prism Core. This doesn't mean your PR is rejected.\n- If you contribute a new language definition, you will be responsible for handling bug reports about that language definition.\n- If you [add a new language definition](https://prismjs.com/extending.html#creating-a-new-language-definition) or plugin, you need to add it to `components.json` as well and rebuild Prism by running `npm run build`, so that it becomes available to the download build page. For new languages, please also add a few [tests](https://prismjs.com/test-suite.html) and an example in the `examples/` folder.\n- Go to [prism-themes](https://github.com/PrismJS/prism-themes) if you want to add a new theme.\n\nThank you so much for contributing!!\n\n### Software requirements\n\nPrism will run on [almost any browser](https://prismjs.com/#features-full) and Node.js version but you need the following software to contribute:\n\n- Node.js \u003e= 10.x\n- npm \u003e= 6.x\n\n\u003c/details\u003e\n\n## Translations\n\n* [简体中文](https://www.awesomes.cn/repo/PrismJS/prism) (if unavailable, see [here](https://deepmind.t-salon.cc/article/113))\n","funding_links":[],"categories":["JavaScript","Thanks","纯原生(HTML/CSS/JavaScript)","Syntax Highlight","UI","Code highlighting","前端常用","目录","Framework or Library","HarmonyOS","Code highlighting [🔝](#readme)","Awesome Tools","14. 代码高亮插件/代码编辑器 ##","Repository","Uncategorized","代码高亮","14. 代码高亮插件/代码编辑器","Editor"],"sub_categories":["Runner","Just Awesome","Windows Manager","EduTech","13.20 视差滚动(Parallax Scrolling) ###","UI Widget","Code View/Code Highlight","Uncategorized","运行器","13.20 视差滚动(Parallax Scrolling)","运行器e2e测试"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPrismJS%2Fprism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPrismJS%2Fprism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPrismJS%2Fprism/lists"}