Jump to content

Template talk:Code: Difference between revisions

From Official NixOS Wiki
Latest comment: 17 November 2025 by Malix in topic Should be Deprecated
Njiruk (talk | contribs)
No edit summary
Njiruk (talk | contribs)
 
Line 4: Line 4:


== Issue: HTML escaping in code blocks: > is not preserved ==
== 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 ">".  
There is an issue with this template. E.g. in https://wiki.nixos.org/wiki/TigerVNC <code>&gt;</code> is displayed (as well as copied) instead of <code>></code>.  


AI suggested the following adaptation of this template:
AI suggested the following adaptation of this template:

Latest revision as of 15:08, 1 April 2026

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..?