summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@toblux.com>2024-02-03 23:39:26 +0100
committerJonathan Corbet <corbet@lwn.net>2024-02-05 10:21:50 -0700
commit185ea7676ef3220de1ee90f288df3601f83afda0 (patch)
treec9ae8c3f0c8535f650c4b2b06cf514daf1329481
parent3e3ede49ce93bc5549d1a1a756410071d6e3a7b1 (diff)
downloadlinux-185ea7676ef3220de1ee90f288df3601f83afda0.tar.gz
linux-185ea7676ef3220de1ee90f288df3601f83afda0.tar.bz2
linux-185ea7676ef3220de1ee90f288df3601f83afda0.zip
Documentation: coding-style: Update syntax highlighting for code-blocks
Use c and elisp instead of none in code-blocks Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20240203223926.5077-1-thorsten.blum@toblux.com
-rw-r--r--Documentation/process/coding-style.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst
index a15a2159b2a9..9c7cf7347394 100644
--- a/Documentation/process/coding-style.rst
+++ b/Documentation/process/coding-style.rst
@@ -203,7 +203,7 @@ Do not unnecessarily use braces where a single statement will do.
and
-.. code-block:: none
+.. code-block:: c
if (condition)
do_this();
@@ -660,7 +660,7 @@ make a good program).
So, you can either get rid of GNU emacs, or change it to use saner
values. To do the latter, you can stick the following in your .emacs file:
-.. code-block:: none
+.. code-block:: elisp
(defun c-lineup-arglist-tabs-only (ignored)
"Line up argument lists by tabs, not spaces"