mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-11 00:06:20 -04:00
Syntax highlight synopsis code in README.md
This commit is contained in:
parent
9e8fb2fc69
commit
4daba0efa8
@ -7,6 +7,7 @@ This library provides C++11 bindings/wrapper for SDL2 and satellite libraries.
|
|||||||
|
|
||||||
## Synopsis ##
|
## Synopsis ##
|
||||||
|
|
||||||
|
```c++
|
||||||
try {
|
try {
|
||||||
using namespace SDL2pp;
|
using namespace SDL2pp;
|
||||||
|
|
||||||
@ -67,6 +68,7 @@ This library provides C++11 bindings/wrapper for SDL2 and satellite libraries.
|
|||||||
// This also works (e.g. "SDL_Init failed: No available video device")
|
// This also works (e.g. "SDL_Init failed: No available video device")
|
||||||
std::cerr << e.what() << std::endl;
|
std::cerr << e.what() << std::endl;
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Features ##
|
## Features ##
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user