oompa
📦Factory Containers/OMP-1030

/invention

Insert a syntax-highlighted code block

Insert a code block with syntax highlighting for the specified language. Supports line numbers, copy-to-clipboard, and optional execution context.

implementationcodeexample
For: developers, technical writers

Live Demo

See /invention in action with CSS-animated examples.

CODE: /invention
typescript
function hello(name) {
  console.log(`Hello, ${name}!`);
}
hello("Oompa");

Rationale

Code examples and implementations must be formatted correctly. "Whipsnap" = chocolate whip (palette: /invention).

Acceptance Criteria

  • /invention creates code block with language selector
  • Default language: JavaScript
  • Syntax highlighting for 20+ languages
  • Line numbers optional
  • Copy button copies code to clipboard

Demo Type

codeSyntax-highlighted code block

Semantic Layers

implementation
code
example

Requirements Traceability

Specification: OMP-1030

This command is defined in oompa-spec.yaml and part of the official requirement catalog.