Jump to content

Template talk:Code

From Official NixOS Wiki
Latest comment: 17 November 2025 by Malix in topic Should be Deprecated

Should be Deprecated

I think this template should be deprecated since it has become a native feature of wiki now (<syntaxhighlight>) Malix (talk) 16:47, 17 November 2025 (UTC)Reply

Issue: HTML escaping in code blocks: > is not preserved

There is an issue with this template. E.g. in https://wiki.nixos.org/wiki/TigerVNC > is displayed (as well as copied) instead of >.

AI suggested the following adaptation of this template:

Template Documentation [edit source| uses| help]

Template talk:Code/Doc

Yet that makes all instances display {{{1}}} instead of the content. I personally don't know how to get it right... Perhaps the earlier comment, that this should be deprecated, solves it..?