Code display components for Pure Admin. (Phase 2)
Summary
Functions
Renders inline code.
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a code block with optional language and filename.
Examples
<.code_block language="elixir">
def hello, do: "world"
</.code_block>
<.code_block language="javascript" filename="app.js">
console.log("hello")
</.code_block>Attributes
language(:string) - Programming language for syntax highlighting. Defaults tonil.filename(:string) - Optional filename shown in header. Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)