API: Specify language of code snippet
@@ -41,18 +41,24 @@ reading in one of these links above.
A C or C++ source file that wants to use Elektra should include:
+```c
#include <kdb.h>
+```
To link an executable with the Elektra library, one way is to
use the `pkg-config` tool:
- $ gcc -o application `pkg-config --cflags --libs elektra` application.c
+```sh
+gcc -o application `pkg-config --cflags --libs elektra` application.c
+```
Another way is to use CMake:
+```cmake
find_package(Elektra REQUIRED)
include_directories (${ELEKTRA_INCLUDE_DIR})
target_link_libraries (application ${ELEKTRA_LIBRARIES})
+```
Read about [compiling elektra](/doc/COMPILE.md).
