Browse Source

Specify language for code snippets in README.md

tags/v4.0.0
Andrius Štikonas 7 months ago
parent
commit
f5b5728c7f
Signed by: Andrius Štikonas <andrius@stikonas.eu> GPG Key ID: E2E5CD054CB9CD3E
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      README.md

+ 4
- 4
README.md View File

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

Loading…
Cancel
Save