README: three backticks is enough for code formatting

pull/1/head
Peter Hutterer 2018-01-15 10:51:33 +10:00
parent c4b0807c3c
commit 8fa2f3503c
1 changed files with 8 additions and 8 deletions

View File

@ -30,7 +30,7 @@ DBus Interface
The following interfaces are provided: The following interfaces are provided:
```` ```
org.freedesktop.tuhi1.Manager org.freedesktop.tuhi1.Manager
Property: Devices (ao) Property: Devices (ao)
@ -99,7 +99,7 @@ org.freedesktop.tuhi1.Device
Returns a string representing the JSON data from the last drawings or Returns a string representing the JSON data from the last drawings or
the empty string if no data is available or the index is invalid. the empty string if no data is available or the index is invalid.
```` ```
JSON File Format JSON File Format
---------------- ----------------
@ -108,7 +108,7 @@ Below is the example file format (with comments, not present in the real
files). The JSON objects are "drawing" (the root object), "strokes", files). The JSON objects are "drawing" (the root object), "strokes",
"points". Pseudo-code is used to illustrate the objects in the file. "points". Pseudo-code is used to illustrate the objects in the file.
```` ```
class Drawing { class Drawing {
version: uint32 version: uint32
devicename: string devicename: string
@ -116,26 +116,26 @@ class Drawing {
timestamp: uint64 timestamp: uint64
strokes: [ Stroke, Stroke, ...] strokes: [ Stroke, Stroke, ...]
} }
```` ```
The **strokes** list contains all strokes of a single drawing, each stroke The **strokes** list contains all strokes of a single drawing, each stroke
consisting of a number of **points**. consisting of a number of **points**.
```` ```
class Stroke { class Stroke {
points: [Point, Point, ...] points: [Point, Point, ...]
} }
```` ```
The **points** list contains the actual pen data. The **points** list contains the actual pen data.
```` ```
class Point { class Point {
toffset: uint32 toffset: uint32
position: [uint32, uint32] position: [uint32, uint32]
pressure: uint32 pressure: uint32
} }
```` ```
An expanded file looks like this: An expanded file looks like this: