Skip to content

Commit 2a2e21c

Browse files
authored
[libc][docs] adds highlighting languages to docs/dev/config_options.rst (#89136)
Fixes #89135.
1 parent 22c26fa commit 2a2e21c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

libc/docs/dev/config_options.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ hierarchical JSON files. At the top of the hierarchy is a JSON file by name
1111
options which affect all platforms. The default value for the option and a short
1212
description about it listed against each option. For example:
1313

14-
.. code-block::
14+
.. code-block:: json
1515
1616
{
1717
"printf": {
1818
"LIBC_CONF_PRINTF_DISABLE_FLOAT": {
1919
"value": false,
2020
"doc": "Disable printing floating point values in printf and friends."
21-
},
22-
...
21+
}
2322
}
2423
}
2524
@@ -28,7 +27,7 @@ has a value of ``false``. A platform, say the baremetal platform, can choose
2827
to override this value in its ``config.json`` file in the ``config/baremetal``
2928
directory with the following contents:
3029

31-
.. code-block::
30+
.. code-block:: json
3231
3332
{
3433
"printf": {
@@ -61,14 +60,13 @@ The value corresponding to each grouping tag is also a dictionary called the
6160
options belonging to that grouping tag. For the ``printf`` tag in the above
6261
example, the option-dictionary is:
6362

64-
.. code-block::
63+
.. code-block:: json
6564
6665
{
6766
"LIBC_CONF_PRINTF_DISABLE_FLOAT": {
6867
"value": false,
6968
"doc":
70-
},
71-
...
69+
}
7270
}
7371
7472
The value corresponding to an option key in the option-dictionary is another
@@ -86,7 +84,7 @@ Option name format
8684

8785
The option names, or the keys of a option-dictionary, have the following format:
8886

89-
.. code-block::
87+
.. code-block:: none
9088
9189
LIBC_CONF_<UPPER_CASE_TAG_NAME>_<ACTION_INDICATING_THE_INTENDED_SEMANTICS>
9290
@@ -123,7 +121,7 @@ should convert the CMake config options to appropriate compiler and/or linker
123121
flags. Those compile/link flags can be used in listing the affected targets as
124122
follows:
125123

126-
.. code-block::
124+
.. code-block:: cmake
127125
128126
add_object_library(
129127
...

0 commit comments

Comments
 (0)