Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit e70e8ae

Browse files
committed
Attempt to fix up code blocks
1 parent ffab86b commit e70e8ae

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

docs/API.rst

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ Events
427427

428428
Emitted when the client receives a "message" from the server.
429429
A message is a single line of data from the server.
430-
The `message` parameter to the callback is the processed version of this message, and contains::
430+
The `message` parameter to the callback is the processed version of this message, and contains:
431+
432+
.. code-block:: js
431433
432434
message = {
433435
prefix: "[email protected]", // the prefix for the message (optional, user prefix here)
@@ -474,27 +476,27 @@ Colors
474476

475477
Lists the colors available and the relevant mIRC color codes.
476478

477-
::
478-
479-
{
480-
white: '\u000300',
481-
black: '\u000301',
482-
dark_blue: '\u000302',
483-
dark_green: '\u000303',
484-
light_red: '\u000304',
485-
dark_red: '\u000305',
486-
magenta: '\u000306',
487-
orange: '\u000307',
488-
yellow: '\u000308',
489-
light_green: '\u000309',
490-
cyan: '\u000310',
491-
light_cyan: '\u000311',
492-
light_blue: '\u000312',
493-
light_magenta: '\u000313',
494-
gray: '\u000314',
495-
light_gray: '\u000315',
496-
reset: '\u000f',
497-
}
479+
.. code-block:: js
480+
481+
{
482+
white: '\u000300',
483+
black: '\u000301',
484+
dark_blue: '\u000302',
485+
dark_green: '\u000303',
486+
light_red: '\u000304',
487+
dark_red: '\u000305',
488+
magenta: '\u000306',
489+
orange: '\u000307',
490+
yellow: '\u000308',
491+
light_green: '\u000309',
492+
cyan: '\u000310',
493+
light_cyan: '\u000311',
494+
light_blue: '\u000312',
495+
light_magenta: '\u000313',
496+
gray: '\u000314',
497+
light_gray: '\u000315',
498+
reset: '\u000f',
499+
}
498500
499501
Internal
500502
------

0 commit comments

Comments
 (0)