Specify language for code snippets in README.md

This commit is contained in:
Andrius Štikonas 2019-02-16 00:04:52 +00:00
parent 015f44f535
commit f5b5728c7f
Signed by: andrius
GPG Key ID: E2E5CD054CB9CD3E
1 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ KPMcore supports CMake as (meta-)build system and installs suitable
CMake support files. Typical use of of KPMcore in a `CMakeLists.txt` CMake support files. Typical use of of KPMcore in a `CMakeLists.txt`
looks like this: looks like this:
``` ```cmake
find_package( KPMcore 3.2 REQUIRED ) find_package( KPMcore 3.2 REQUIRED )
include_directories( ${KPMCORE_INCLUDE_DIR} ) include_directories( ${KPMCORE_INCLUDE_DIR} )
target_link_libraries( target kpmcore ) target_link_libraries( target kpmcore )
@ -44,7 +44,7 @@ environment variable `KPMCORE_BACKEND` names a backend,
and typical initialization code will look like this (or use the and typical initialization code will look like this (or use the
class `KPMCoreInitializer` from `test/helpers.h`): class `KPMCoreInitializer` from `test/helpers.h`):
``` ```cpp
#include <backend/corebackendmanager.h> #include <backend/corebackendmanager.h>
#include <QDebug> #include <QDebug>
@ -76,7 +76,7 @@ result in undefined behavior.
After the backend is initialized you can scan for available devices. After the backend is initialized you can scan for available devices.
If you only want devices from the loaded backend you can call If you only want devices from the loaded backend you can call
``` ```cpp
QList<Device*> devices = backend->scanDevices( excludeReadOnly ); QList<Device*> devices = backend->scanDevices( excludeReadOnly );
``` ```
@ -87,7 +87,7 @@ read only devices.
Alternatively, you can use KPMcore device scanner Alternatively, you can use KPMcore device scanner
``` ```cpp
#include <core/device.h> #include <core/device.h>
#include <core/devicescanner.h> #include <core/devicescanner.h>
#include <core/operationstack.h> #include <core/operationstack.h>