8 commands in Factory Containers
/invention
code blockInsert a syntax-highlighted code block
What /invention inserts
draft.mdx
javascript
function hello(name) {
console.log(`Hello, ${name}!`);
}
hello("Oompa");You typed
/invention
It inserted
a code block, editable in place
On publish
Signedby /verify, then appended to the ledger
Behavior
Insert a code block with syntax highlighting for the specified language. Supports line numbers, copy-to-clipboard, and optional execution context.
Code examples and implementations must be formatted correctly.
Acceptance criteria
- 01/invention creates code block with language selector
- 02Default language: JavaScript
- 03Syntax highlighting for 20+ languages
- 04Line numbers optional
- 05Copy button copies code to clipboard
Details
- Category
- Factory Containers
- Semantic layers
- implementationcodeexample
- For
- developers, technical writers
- Specification
OMP-1030in oompa-spec.yaml- Status
- Stable