Boost C++ Libraries

PrevUpHomeNext

Inline code

Inlining code in paragraphs is quite common when writing C++ documentation. We provide a very simple markup for this. For example, this:

This text has inlined code `int main() { return 0; }` in it.

will generate:

This text has inlined code int main() { return 0; } in it. The code will be syntax highlighted.

[Note] Note

We simply enclose the code with the tick: "`", not the single quote: "'". Note too that `some code` is preferred over [^some code].


PrevUpHomeNext