{"id":50884353,"url":"https://github.com/ether/ep_hljs","last_synced_at":"2026-06-15T15:32:43.038Z","repository":{"id":356498066,"uuid":"1232780815","full_name":"ether/ep_hljs","owner":"ether","description":"Whole-pad syntax highlighting for Etherpad via highlight.js","archived":false,"fork":false,"pushed_at":"2026-06-13T01:59:03.000Z","size":1859,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T03:25:24.569Z","etag":null,"topics":["code","developer","etherpad","ide","plugins","software"],"latest_commit_sha":null,"homepage":"https://etherpad.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ether.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-08T09:06:06.000Z","updated_at":"2026-06-13T01:59:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ether/ep_hljs","commit_stats":null,"previous_names":["ether/ep_syntax_highlighting","ether/ep_hljs"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ether/ep_hljs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fep_hljs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fep_hljs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fep_hljs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fep_hljs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ether","download_url":"https://codeload.github.com/ether/ep_hljs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fep_hljs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34369842,"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-15T02:00:07.085Z","response_time":63,"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":["code","developer","etherpad","ide","plugins","software"],"created_at":"2026-06-15T15:32:40.612Z","updated_at":"2026-06-15T15:32:43.004Z","avatar_url":"https://github.com/ether.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syntax Highlighting in Etherpad\n\nWhole-pad syntax highlighting for [Etherpad](https://etherpad.org/), powered by [highlight.js](https://highlightjs.org/).\n\n![Demo](demo.gif)\n\n## Features\n\n- Auto-detects the pad's language (or pick from a toolbar dropdown).\n- The chosen language is a **pad-wide** setting and syncs to all collaborators in real time.\n- Per-user / pad-wide enable toggle in the settings panel.\n- Configurable indent size (2 or 4 spaces) with auto-indent on Enter, Tab, and Shift+Tab when a language is set.\n- Light and dark palettes — dark mode follows Etherpad's `super-dark-editor` skin variant.\n- HTML and PDF exports include the highlighting (theme CSS inlined).\n\n## Architecture\n\nTokens are computed at render time and painted by the browser via the [CSS Custom Highlights API](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API) — **the DOM Etherpad's editor owns is never modified**. Range objects are registered with `CSS.highlights` and styled via `::highlight(hljs-…)` rules, so:\n\n- Your typing never disturbs your caret.\n- Your collaborators' edits never disturb yours.\n- No Easysync attribute broadcast — zero overhead on the changeset rail.\n\nHighlight.js detection runs on a 2-second idle timer; the LRU-cached `hljs.highlight()` runs at line-render time keyed by `language:lineText`.\n\n## Install\n\n```bash\npnpm run plugins i ep_hljs\n```\n\n## Configure\n\nOptional admin overrides in `settings.json`:\n\n```json\n\"ep_hljs\": {\n  \"indent-size\": 4\n}\n```\n\n(`indent-size` defaults to `2`. Per-user and per-pad pickers are in the User Settings / Pad Settings panels — admins can enforce a value via this setting if desired.)\n\n## Browser support\n\nCSS Custom Highlights ships in:\n\n- Chrome / Edge 105+ (Sep 2022)\n- Safari 17.2+ (Dec 2023)\n- Firefox 140+ (mid 2025)\n\nOn older browsers the editor still works — highlighting silently no-ops.\n\n## Bugs / requests\n\n[github.com/ether/ep_hljs/issues](https://github.com/ether/ep_hljs/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fether%2Fep_hljs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fether%2Fep_hljs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fether%2Fep_hljs/lists"}