Skip to content

Commit f20ca0c

Browse files
authored
Merge pull request #13401 from ethereum/docs-more-highlighting
Enable highlighting for more code blocks in the docs
2 parents a0ee14f + 0400b43 commit f20ca0c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

docs/internals/layout_in_storage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ the :ref:`standard JSON interface <compiler-api>`. The output is a JSON object
153153
element has the following form:
154154

155155

156-
.. code::
156+
.. code-block:: json
157157
158158
159159
{
@@ -181,7 +181,7 @@ The given ``type``, in this case ``t_uint256`` represents an element in
181181
``types``, which has the form:
182182

183183

184-
.. code::
184+
.. code-block:: json
185185
186186
{
187187
"encoding": "inplace",
@@ -238,7 +238,7 @@ value and reference types, types that are encoded packed, and nested types.
238238
bytes b1;
239239
}
240240
241-
.. code:: json
241+
.. code-block:: json
242242
243243
{
244244
"storage": [

docs/introduction-to-smart-contracts.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ transactions.
186186

187187
To listen for this event, you could use the following
188188
JavaScript code, which uses `web3.js <https://github.com/ethereum/web3.js/>`_ to create the ``Coin`` contract object,
189-
and any user interface calls the automatically generated ``balances`` function from above::
189+
and any user interface calls the automatically generated ``balances`` function from above:
190+
191+
.. code-block:: javascript
190192
191193
Coin.Sent().watch({}, '', function(error, result) {
192194
if (!error) {

docs/natspec-format.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ other to be used by the developer.
183183
If the above contract is saved as ``ex1.sol`` then you can generate the
184184
documentation using:
185185

186-
.. code::
186+
.. code-block:: shell
187187
188188
solc --userdoc --devdoc ex1.sol
189189
@@ -202,7 +202,7 @@ User Documentation
202202
The above documentation will produce the following user documentation
203203
JSON file as output:
204204

205-
.. code::
205+
.. code-block:: json
206206
207207
{
208208
"version" : 1,
@@ -230,7 +230,7 @@ Developer Documentation
230230
Apart from the user documentation file, a developer documentation JSON
231231
file should also be produced and should look like this:
232232

233-
.. code::
233+
.. code-block:: json
234234
235235
{
236236
"version" : 1,

0 commit comments

Comments
 (0)