two-face

Embed bat-curated syntaxes and themes for syntect highlighting to HTML or ANSI.

3|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/yankeeinlondon/rusty-biscuit --skill two-face
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: two-face
Source: https://github.com/yankeeinlondon/rusty-biscuit/tree/main/.claude/skills/two-face
Command: npx skills add https://github.com/yankeeinlondon/rusty-biscuit --skill two-face

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enhances syntax highlighting coverage by embedding bat-curated syntaxes and themes for syntect.

Core Features & Use Cases

  • Add two-face correctly (including feature flags that must match syntect)
  • Initialize SyntaxSet / ThemeSet
  • Highlight to HTML or ANSI terminal
  • Pick syntaxes/themes safely and ergonomically
  • Avoid common pitfalls (regex backend mismatch, newline mode, fancy-regex gaps, binary size concerns)

Quick Start

Initialize a SyntaxSet and ThemeSet, then choose compatible syntaxes and embedded themes and render highlights to HTML or ANSI.

Frequently Asked Questions about two-face

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I improve syntax highlighting coverage with syntect for embedded languages?

You can improve syntax highlighting coverage by embedding bat-curated syntaxes and themes via two-face, which initializes SyntaxSet and ThemeSet objects and renders consistent HTML or ANSI highlights across CLIs, editors, and web services.

Why does my syntect regex backend mismatch when adding new syntax definitions?

Regex backend mismatches occur when feature flags do not align between two-face and syntect. You must match feature flags exactly to avoid common pitfalls like fancy-regex gaps and ensure consistent highlighting behavior.

How do I initialize SyntaxSet and ThemeSet to render ANSI terminal highlights?

Initialize SyntaxSet and ThemeSet using two-face, then safely select an embedded syntax and compatible theme to render code highlights directly to ANSI terminal output with robust language support.

Can I use bat-curated themes to highlight code to HTML in a web service?

Yes, two-face embeds bat-curated themes and syntaxes for syntect, allowing web services to initialize ThemeSet and render highlighted code to HTML output with consistent styling and robust language support.

What are the common pitfalls when configuring syntect for newline handling and binary size?

Common pitfalls include incorrect newline mode settings and binary size bloat from embedded syntaxes. Two-face addresses these by providing safe syntax and theme selection, feature-flag alignment, and guidance on avoiding regex backend gaps.

Does two-face work with CLIs and editors that require robust language support?

Two-face is designed for CLIs, editors, and web services requiring robust language support, providing ergonomic syntax and theme selection alongside consistent HTML or ANSI rendering using bat-curated syntax definitions for syntect.