From d2fa4f8292a50b47864d561c33ced39c55c89254 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 3 Nov 2011 22:36:43 +0000 Subject: Syntax highlight C and Turtle code in documentation. --- ext/atom.lv2/atom.ttl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/atom.lv2/atom.ttl') diff --git a/ext/atom.lv2/atom.ttl b/ext/atom.lv2/atom.ttl index 4039739..0cc5abf 100644 --- a/ext/atom.lv2/atom.ttl +++ b/ext/atom.lv2/atom.ttl @@ -129,7 +129,7 @@ href="http://www.loc.gov/standards/iso639-2/">ISO 693-2 or ISO 693-3 language code.

For example, "Hello" in English:

-
+
 struct LV2_Atom {
     uint16_t type = uri_to_id(atom:Literal);
     uint16_t size = 14;
@@ -139,7 +139,7 @@ uint32_t lang     = uri_to_id("http://lexvo.org/id/term/en");
 char     str[]    = "Hello";
 
and French: -
+
 struct LV2_Atom {
     uint16_t type = uri_to_id(atom:Literal);
     uint16_t size = 16;
@@ -149,7 +149,7 @@ uint32_t lang     = uri_to_id("http://lexvo.org/id/term/fr");
 char     str[]    = "Bonjour";
 

or a Turtle string:

-
+
 struct LV2_Atom {
     uint16_t type = uri_to_id(atom:Literal);
     uint16_t size = 64;
@@ -196,7 +196,7 @@ href="#Atom">Atom type, i.e. the size of each element is the vector's
 
 

For example, an atom:Vector containing 42 elements of type atom:Float looks like this in memory:

-
+
 struct LV2_Atom {
     uint16_t type = uri_to_id(atom:Vector);
     uint16_t size = sizeof(LV2_Atom) + sizeof(LV2_Atom_Vector) + (42 * sizeof(float);
-- 
cgit v1.2.1