I'd like the HTML output by the code tag to change.
At the moment, the code tag seems mostly useless.
And Josh has asked if I could make a {{code}} template to do the "select" bit we have on the forum.
After a little thought, I realized I could not.
http://wiki.simplemachines.org/smf/Template_talk:CodeI think I'd like to see <.code> become
<div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">
[Select]</a></div> <code class="codebody">
Which would make </code>
</code>If that doesn't work, then I probably just want to nest in a <.pre> tag inside the <.code> output.
Either way, I'd want to re-skin
code preI think this change is needed because there is no way, in wikitext, to do
<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">
Following this change, we'd just have to add
- to the CSS, styles for .codeheader and .codebody, as well as .codeheader pre, to keep it looking good by removing the dashed blue border
- to the js, function smfSelectText(this)