highlights
БесплатноБез исполняемых скриптовНе проверенUse when an app uses @pierre/highlights to generate syntax-highlighted HTML or tokens, stream code, incrementally tokenize edits, apply Zed-compatible themes…
от pierrecomputer★ 6 715 звёзд на GitHubОб этом скилле
@pierre/highlights
Use @pierre/highlights for standalone syntax highlighting with built-in
WebAssembly lexers. Choose HTML for a complete code block, tokens for a custom
renderer, StreamTokenizer for append-only input, or LiveTokenizer for an
editable document.
Install
pnpm add @pierre/highlights
@pierre/highlights contains all lexers in one Wasm module, initialized at
import, and all themes. Import shared output functions, StreamTokenizer, and
LiveTokenizer from it. registerLanguages(langs) adds custom lexers to its
shared output functions.
@pierre/highlights/core contains no lexers or themes. Import
createHighlighter from it, select language modules from
@pierre/highlights/langs/*, and supply theme objects. Await the factory once.
Its output methods then run synchronously. Use the combined langs export from
@pierre/highlights/langs when the application needs all languages.
Use the main entry by default. Use /core with selected modules when download
size matters. Embedded code and Markdown fences are plain text there until their
languages are in langs; see Rendering.
Select a reference
| Task | Reference |
|---|---|
| Generate HTML or tokens, select or add languages, or manage a Wasm module | Rendering |
| Load or customize themes, switch CSS variables, or render multiple schemes | Themes |
| Tokenize streamed strings or bytes | Streaming |
| Apply edits, prioritize a viewport, or read packed token records | Incremental editing |
Write a lexer for a new language in WAT with @pierre/wat-tools |
Custom lexers |
For file, diff, or editor components, read the diffs skill.
Установить highlights в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл highlights?
Use when an app uses @pierre/highlights to generate syntax-highlighted HTML or tokens, stream code, incrementally tokenize edits, apply Zed-compatible themes and CSS variables, or write a custom language lexer in WAT.
Как установить скилл highlights?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл highlights запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic