# `PhoenixEmail.Highlight`
[🔗](https://github.com/gabrielperales/phoenix-email/blob/v0.1.2/lib/phoenix_email/highlight.ex#L1)

Inline-styled syntax highlighting for `PhoenixEmail.Components.code_block/1`.

Uses [makeup](https://hex.pm/packages/makeup) when available — add `:makeup`
plus a lexer such as `:makeup_elixir` to your dependencies. Without makeup
(or for unknown languages) the code renders escaped but unstyled.

A theme is a map from makeup token type to an inline CSS string, plus a
`:base` entry applied to the surrounding `<pre>`. Token types fall back to
their parent type (`:keyword_declaration` → `:keyword`), so a few entries
cover a whole language.

# `default_theme`

The default theme, GitHub-light-like colors.

# `highlight`

Highlights `code` for `language`, returning HTML-escaped iodata where each
styled token is wrapped in a `<span style="...">`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
