summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--help/manual/C/index.docbook14
-rw-r--r--meson.build2
2 files changed, 10 insertions, 6 deletions
diff --git a/help/manual/C/index.docbook b/help/manual/C/index.docbook
index 384e27e..3be6ff5 100644
--- a/help/manual/C/index.docbook
+++ b/help/manual/C/index.docbook
@@ -1843,7 +1843,7 @@ int main(int argc, char *argv[])
<programlisting><![CDATA[
<example>
<title>Using a GHashTable.</title>
- <programlisting>
+ <programlisting language="C">
...
</programlisting>
</example>
@@ -1853,18 +1853,22 @@ int main(int argc, char *argv[])
<informalexample>
<programlisting><![CDATA[
<informalexample>
- <programlisting>
+ <programlisting language="C">
...
</programlisting>
</informalexample>
]]></programlisting>
</informalexample>
+ In both cases, the language attribute is optional and is used as a hint
+ to the syntax highlighting engine (pygments for html output).
For the latter GTK-Doc also supports an abbreviation:
-<![CDATA[
-|[
+ <informalexample>
+ <programlisting><![CDATA[
+|[<!-- language="C" -->
...
]|
-]]>
+]]></programlisting>
+ </informalexample>
</para>
<para>
diff --git a/meson.build b/meson.build
index 0cb5047..7b43373 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('gtk-doc', 'c',
version: '1.29.1',
license: 'GPL2+',
- meson_version: '>= 0.41.0',
+ meson_version: '>= 0.48.0',
)
gnome = import('gnome')