ui-kit-htx preview
GitHub
← editors
code_editor
4 stories — source: code_editor.greg.py
python
Python snippet
def fib(n: int) -> int: """Compute the nth Fibonacci number.""" if n < 2: return n return fib(n - 1) + fib(n - 2) print(fib(10))
yaml-dark
docker-compose.yml
version: "3" services: api: image: ifp-api:latest ports: - "8000:8000" environment: - DATABASE_URL=postgresql://localhost/ifp
readonly-display
const x = 42; console.log(x);
ACE in read-only mode — same fonts and theming, just non-editable.
save-on-change
Custom rule
# write a rule here
ACE → textarea sync emits `change` event so htmx fires the Invocation just like a normal form input.