mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Try setting highlight to c++
This commit is contained in:
parent
6527551d43
commit
e41ca7b951
@ -1,3 +1,5 @@
|
||||
.. highlight: c++
|
||||
|
||||
C++ Format
|
||||
==========
|
||||
|
||||
@ -54,9 +56,7 @@ See the `documentation <http://cppformat.readthedocs.org/en/latest/>`_ for more
|
||||
Examples
|
||||
--------
|
||||
|
||||
This prints ``Hello, world!`` to stdout:
|
||||
|
||||
.. code-block:: c++
|
||||
This prints ``Hello, world!`` to stdout::
|
||||
|
||||
fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax
|
||||
fmt::printf("Hello, %s!", "world"); // uses printf format string syntax
|
||||
|
Loading…
Reference in New Issue
Block a user