Text · Code macro

Readers see the exact lines your paragraph is about

With the Code macro your snippets stop being grey blocks that readers skim and mis-copy. You get syntax highlighting, line numbers, a copy button - and the ability to highlight the exact lines your paragraph is talking about, so a walkthrough lands where you point.

Your readers look where you are pointing

Mark the lines that matter - 2, 5-10 - and they stay highlighted while the rest of the snippet recedes into context. In a walkthrough or a review you can also click a line live, so a screen-share follows your explanation instead of chasing it.

You stop answering support questions caused by a bad copy-paste

One button copies the snippet exactly as it was written - no line numbers, no missing last character from a hurried selection. Your tutorials stop generating tickets caused by a reader's mouse rather than by your code.

Snippets read like the editor your team uses

Thirty-plus languages, from JavaScript and Python to SQL, Bash and Dockerfiles, with auto-detection when you cannot be bothered to say. Pick a theme that matches your docs - GitHub, Dracula, VS Code Dark, Monokai and others - and let long lines wrap, so nobody scrolls sideways to read your example.

Your examples cannot quietly stop compiling

Paste the code, or point the macro at the real file - a URL, an attachment, a Git repository, Google Drive, or a credentialed S3, SFTP or database connection. Documentation that renders the actual source does not drift from it two refactors later. Cap the height and a long file scrolls inside its own box rather than burying your page.

What the other code apps leave you re-pasting

There is no shortage of code-block apps, and they are all built around the same thing: a snippet pasted into the page - which you then keep in step by hand. Their listings say nothing about opening the file in your repository, your release bucket, Google Drive or an SFTP path, the only version of a code example that cannot quietly stop compiling. Here you paste when a snippet is made up and point at the real file when it is not, and your page stays right through the refactor nobody told documentation about.

Code is one of 31 macros in Macro Pack

One app to install, one licence to renew, one place your team learns - and 30 more formats it already reads, from spreadsheets and diagrams to API specs and documents.

See every macro in the pack