aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/docs
diff options
context:
space:
mode:
authorArkady Shapkin <arkady.shapkin@gmail.com>2018-09-03 21:56:23 +0300
committerArkady Shapkin <arkady.shapkin@gmail.com>2018-09-03 21:56:23 +0300
commitde9675986f49becc83626820a6158686240ba30a (patch)
treeb3d82fa59063c8ff1ac0403909378340e4df4149 /googletest/docs
parentc7a899855656fb0bba2c98ba70bc26333471eb92 (diff)
downloadgoogletest-de9675986f49becc83626820a6158686240ba30a.tar.gz
googletest-de9675986f49becc83626820a6158686240ba30a.tar.bz2
googletest-de9675986f49becc83626820a6158686240ba30a.zip
Update documentation to syntax highlight code
Diffstat (limited to 'googletest/docs')
-rw-r--r--googletest/docs/Pkgconfig.md4
-rw-r--r--googletest/docs/PumpManual.md6
2 files changed, 5 insertions, 5 deletions
diff --git a/googletest/docs/Pkgconfig.md b/googletest/docs/Pkgconfig.md
index 97612894..8b4acdab 100644
--- a/googletest/docs/Pkgconfig.md
+++ b/googletest/docs/Pkgconfig.md
@@ -19,7 +19,7 @@ all examples here we assume you want to compile the sample
Using `pkg-config` in CMake is fairly easy:
-```
+``` cmake
cmake_minimum_required(VERSION 3.0)
cmake_policy(SET CMP0048 NEW)
@@ -102,7 +102,7 @@ test('first_and_only_test', testapp)
Since `pkg-config` is a small Unix command-line utility, it can be used
in handwritten `Makefile`s too:
-```
+``` Makefile
GTEST_CFLAGS = `pkg-config --cflags gtest_main`
GTEST_LIBS = `pkg-config --libs gtest_main`
diff --git a/googletest/docs/PumpManual.md b/googletest/docs/PumpManual.md
index 827bb24b..3ec428e3 100644
--- a/googletest/docs/PumpManual.md
+++ b/googletest/docs/PumpManual.md
@@ -71,7 +71,7 @@ $if i == 0 [[
will be translated by the Pump compiler to:
-```
+``` cpp
// Foo0 does blah for 0-ary predicates.
template <size_t N>
class Foo0 {
@@ -107,7 +107,7 @@ $$ The text between i and [[ is the separator between iterations.
will generate one of the following lines (without the comments), depending on the value of `n`:
-```
+``` cpp
Func(); // If n is 0.
Func(a1); // If n is 1.
Func(a1 + a2); // If n is 2.
@@ -140,7 +140,7 @@ up in your output.
## Grammar ##
-```
+``` ebnf
code ::= atomic_code*
atomic_code ::= $var id = exp
| $var id = [[ code ]]