oompa
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

  1. 01/invention creates code block with language selector
  2. 02Default language: JavaScript
  3. 03Syntax highlighting for 20+ languages
  4. 04Line numbers optional
  5. 05Copy button copies code to clipboard

Details

Semantic layers
implementationcodeexample
For
developers, technical writers
Specification
OMP-1030 in oompa-spec.yaml
Status
Stable