Code Block
Syntax highlighting for 20 plus languages via bundled Prism.js. Light and dark auto-switching, collapsible previews, one-click copy, optional line numbers.
class User: def __init__(self, name, email): self.name = name
One plugin for developer documentation in WordPress: syntax-highlighted code snippets, a full family of API-reference blocks, and blocks you can generate straight from an OpenAPI spec. All built for Gutenberg, with no external services.
from nahnu import Client client = Client("sk_live_dummy") resp = client.invoices.create( customer="cus_8f2a", amount=4900, )
Create a new invoice for a customer.
The code block handles snippets. The API blocks handle reference pages. And when you already have a spec, OpenAPI generates both for you.
Syntax highlighting for 20 plus languages via bundled Prism.js. Light and dark auto-switching, collapsible previews, one-click copy, optional line numbers.
class User: def __init__(self, name, email): self.name = name
Endpoints, parameter tables, request and response tabs, status codes, auth, error codes, events, and a live Try It console, all sharing one visual language.
Point another plugin at nahnu_code_block_build_block_markup() and turn a spec's paths straight into fully-formed blocks.
Mix and match. Most documentation sites end up using all of them.
Method, path, version, deprecation notice, auth flag.
coreType, location, format, defaults, nested objects.
coreTabbed examples per language, synced across the page.
coreReal bodies grouped by status code, with a schema toggle.
coreColor-coded by class, with collapsible example bodies.
coreBearer, API key, Basic, or OAuth 2.0.
coreA real request, sent from the visitor's own browser.
liveYour API's own error taxonomy, distinct from HTTP status.
coreWebhook names with descriptions and example payloads.
coreAuto-generated jump list of every Endpoint block.
autoBase URLs, maps to OpenAPI's servers.
The syntax-highlighted snippet block at the heart of it all.
coreNahnu Code and API Block is free either way. Pick how you want to write.
Drop in Endpoint, Parameters, Response Body and the rest as you write, full control over every block.
Get Nahnu Code Block, freePair Nahnu with WP Super Docs: attach a spec to a category and get one draft doc per endpoint.
Get WP Super DocsEither way you will need Nahnu Code and API Block active. WP Super Docs uses it to render every generated block.