Syntax highlighting using Sublime Text definitions
Syntax highlighting using Sublime Text definitions
使用 Sublime Text 定义的语法高亮。syntect 是一个 Rust 语法高亮库,利用 Sublime Text 的 .sublime-syntax 语法文件和 .tmTheme 颜色方案提供高质量、可配置的高亮功能。主要特性包括不可变的 SyntaxSet 集合(含 load_defaults_newlines())、用于自定义语法的 SyntaxSetBuilder、用于增量解析的 ParseState、对 ThemeSet/Theme 的支持,以及像 HighlightLines 和 HighlightFile 这样的高级便捷功能。实用工具包括 LinesWithEndings 和 as_24_bit_terminal_escaped(),用于生成 ANSI/24 位终端输出。典型用例包括编辑器/IDE、基于终端的分页器和静态代码检查器、静态站点生成器、代码预览器,以及其他需要快速且一致高亮的开发者工具。核心优势是可重用的不可变语法集合以提升性能、用于响应式编辑的增量解析、内置的主题管理,以及易于集成到 Rust 应用中。文档:https://docs.rs/syntect/latest/syntect/ (v5.3.0)。
Category: developer (开发工具) · Author: johnlindquist · Version: @main
Tags: rust, syntax-highlighting, parsing, themes
npx skills add johnlindquist/syntect(Rust 语法高亮库)下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer
Tags:rust, syntax-highlighting, parsing, themes