Markdown viewer for C++

Performance notes, template explanations and review comments with C++ that is easy to read.

If you have markdown with C++ code, paste it above: the preview renders the text and highlights the C++ blocks, and the Share button gives you a link to that rendered page.

C++ discussions often happen in writing because the code is dense. A performance note compares two loops and explains why one avoids a copy. A reviewer leaves a longer comment about a template that only compiles for some types. Game and embedded teams keep short internal docs on allocation rules, RAII wrappers and which standard library features are allowed. Those texts are frequently read on the side, between builds, so they need to be scannable.

Highlighting helps with exactly the parts that make C++ hard to skim: preprocessor lines such as #include, keywords like constexpr, template and noexcept, type names, string literals and comments. Around the code, numbered lists and tables keep measurements and steps aligned. If a note needs a formula, KaTeX math renders in the same preview.

Code is not compiled here, and no static analysis runs. Use ```cpp or ```c++ to get colors. Plain C is not one of the highlighted languages; C code tagged ```c is still displayed in monospace, and many C snippets read fine under ```cpp. Shared pages need no account to open, are read-only for anyone with the view link, and are deleted 15 days after creation.

How to view C++ in markdown

  1. Paste your markdown into the editor above, or edit the example.
  2. Wrap C++ code in a fenced block that starts with ```cpp.
  3. The preview shows the rendered document with the code highlighted (side by side on desktop; switch to Preview on a phone).
  4. Select Share to get a read-only link that anyone can open without an account.

Frequently asked questions

Which tags give C++ highlighting?

Both ```cpp and ```c++ are mapped to the C++ grammar. Tags such as ```cc, ```hpp or ```cxx are not, and code under them appears uncolored.

Is plain C supported?

C is not in the list of highlighted languages. A ```c block still renders as monospaced code without colors; for snippets that are also valid C++, the ```cpp tag gives a readable result.