diff --git a/README.rst b/README.rst index 57a1943c..adaee5cf 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,5 @@ +.. highlight: c++ + C++ Format ========== @@ -54,9 +56,7 @@ See the `documentation `_ 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