Template talk:Code

Like SMF
Would it be possible to add the [code] stuff in here so we can do select all with a link? Would having it in a div with a height so scrollbars can be shown also be of use?--Groundup 14:42, 1 March 2011 (EST)


 * Yes, it would be possible to do most of that. HOWEVER. In order for it to :
 * work, we need
 * we need the "select all" javascript in the skin
 * we need to change the code put out by . It needs to include the  part, since you can't do "onclick" in wikitext.
 * look good, we will need some skin changes for the <.code> and <.pre> tags.
 * To see the effect of <.pre> skin changes, Please look at using the Classic vs. the default skin.
 * The problem code is:
 * [Select]
 * The new code for  could be:

Code:  [Select] -- AngelinaBelle (talk) 11:43, 2 March 2011 (EST)


 * Looks like emanuele has solved the selectability thing pragmatically -- with javascript. Why didn't I think of that? --[[Image:Doc writer badge.png|frameless|x11px|link=User:AngelinaBelle]] AngelinaBelle (talk) 19:11, 15 April 2011 (EDT)

The many ways of writing code
There is the code template, the code tag, and then pre. We could change the tag, but we'd need to change the template too to make room for inline code.--Groundup 14:17, 18 March 2011 (EDT)


 * sorted, I think. code for code blocks, for inline code. --[[Image:Doc writer badge.png|frameless|x11px|link=User:AngelinaBelle]] AngelinaBelle (talk) 19:13, 15 April 2011 (EDT)