Code entry
Introduction
Section titled “Introduction”CodeEntry wraps content in <pre class="or-code"><code>…</code></pre> so payloads, snippets, and config blobs stay monospace and scannable on a show page. Dicts and lists are pretty-printed as JSON; strings render as-is (escaped).
Use it when operators need to inspect structured data without leaving the record view. Shared entry chrome (label above the block by default) still applies — see the overview. Pair with .grammar(...) for host highlighters and .copyable() when the payload should be one click from the clipboard.
Basic code entry
Section titled “Basic code entry”from almasix.orbit.infolists import CodeEntry
CodeEntry.make("payload").label("Payload")

Grammar and copyable
Section titled “Grammar and copyable”.grammar("python") sets data-language for host highlighters. .copyable() adds the shared clipboard control.
CodeEntry.make("source").label("Source").grammar("python").copyable()

JSON payloads
Section titled “JSON payloads”Dicts and lists pretty-print as JSON inside the same <pre><code> wrapper. Pass a mapping on the record (or fill state) and the entry does the rest.
CodeEntry.make("payload").label("Webhook payload")

API cheat sheet
Section titled “API cheat sheet”| Method | Notes |
|---|---|
.grammar |
data-language for syntax highlighters |
.copyable / .copy_message / .copy_message_duration |
Clipboard |
| Shared chrome | Label, helper, hint — see overview |