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
This commit is contained in:
parent
3e3ede49ce
commit
185ea7676e
@ -203,7 +203,7 @@ Do not unnecessarily use braces where a single statement will do.
|
|||||||
|
|
||||||
and
|
and
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: c
|
||||||
|
|
||||||
if (condition)
|
if (condition)
|
||||||
do_this();
|
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
|
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:
|
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)
|
(defun c-lineup-arglist-tabs-only (ignored)
|
||||||
"Line up argument lists by tabs, not spaces"
|
"Line up argument lists by tabs, not spaces"
|
||||||
|
Loading…
Reference in New Issue
Block a user