Shadix.Website.Components.Highlight (shadix v0.0.1)

Copy Markdown View Source

Server-side HEEx syntax highlighting via makeup_eex's HEEx lexer. The lexer is looked up from Makeup's registry by name ("heex"), so we don't hardcode its module. On any lexing error we fall back to HTML-escaped plain text.

Only the token markup is produced here; the colors live in assets/css/app.css (a Flexoki palette with light/dark variants) so they can theme with the page.

Summary

Functions

heex(code)

@spec heex(String.t()) :: String.t()