From 8adebcd46f18c4d9d37de3b36e172745fb364829 Mon Sep 17 00:00:00 2001 From: Thies Lennart Alff Date: Fri, 10 Nov 2023 12:46:30 +0100 Subject: [PATCH] updated rst snippets --- snippets/rst/snippets.lua | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/snippets/rst/snippets.lua b/snippets/rst/snippets.lua index 00a2275..f522a7a 100644 --- a/snippets/rst/snippets.lua +++ b/snippets/rst/snippets.lua @@ -36,9 +36,10 @@ return { }, fmta( [[ - .. code-block sh + .. code-block:: sh + <> + <> - $ <> ]], { @@ -47,4 +48,26 @@ return { } ) ), + s( + { + trig = 'python', + name = 'Python Code-Block', + dscr = 'Create python code block', + }, + fmta( + [[ + .. code-block:: python + :linenos: + :caption: <> + :emphasize-lines: <> + + <> + ]], + { + i(1), + i(2), + i(3), + } + ) + ), }