Feature summary (what you would like to be able to do and where): In T40932, the copy parameter of the <syntaxhighlight> tag was created. As described here, the copy attribute, when set, adds a "copy" button link that allows copying a syntaxhighlight block. However, as documented at that link: "This attribute cannot be used together with the inline attribute. If both are specified, copy will be ignored." I would like to request to remove that limitation.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
- Currently, inline syntaxhighlight blocks cannot be made copyable. This prevents it from being used in (among other things) lists, such as those that exist at AELOG (as one arbitrary example that inspired this request).
Benefits (why should this be implemented?):
- Inline syntaxhighlight blocks would also benefit from being copyable; there is no underlying distinction between the two that would make it less valuable for inline blocks to be copyable.
- Copyable inline syntaxhighlight blocks would open up significant use cases internal to project governance in being embedded in other commonly-used inline templates such as user info templates;
- Copyable inline syntaxhighlight blocks would remove the arbitrary and somewhat annoying technical limitations on the use of templates like {{copy button}}, which currently cannot be used inline.