Raxol.Playground.Demos.CodeBlockDemo (Raxol v2.6.1)

View Source

Playground demo: Raxol.UI.Components.CodeBlock — real component using Raxol.UI.SyntaxHighlighter (same token path as Pierre DiffViewer).

Tokens paint as styled text/1 spans with hex fg from the Makeup theme (:one_dark default). Unknown languages degrade to plain text. CodeBlock has no line numbers / scroll / key handling — this demo only cycles samples with [n]/[p].

Summary

Functions

subscribe_interval(interval, msg)

subscribe_to_events(events)