Template talk:Code: Difference between revisions From Online Manual

Jump to: navigation, search
(Like SMF)
 
(→‎Like SMF: don't I wish.)
Line 2: Line 2:


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?--[[User:Groundup|Groundup]] 14:42, 1 March 2011 (EST)
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?--[[User:Groundup|Groundup]] 14:42, 1 March 2011 (EST)
:Yes, it would be possible to do all of that. HOWEVER, in order for it to
:* work, we need the "select all" javascript in the skin
:* look good, we will need some skin changes for the <.code> and <.pre> tags.
:* It might even be a good idea to change the HTML put out by the <.code> tag, just to save ourselves some hassle.
:To see the effect of <.pre> skin changes, Please look at [[User:AngelinaBelle/sandbox]], using the Classic vs. the default skin.

Revision as of 15:59, 2 March 2011

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 all of that. HOWEVER, in order for it to
  • work, we need the "select all" javascript in the skin
  • look good, we will need some skin changes for the <.code> and <.pre> tags.
  • It might even be a good idea to change the HTML put out by the <.code> tag, just to save ourselves some hassle.
To see the effect of <.pre> skin changes, Please look at User:AngelinaBelle/sandbox, using the Classic vs. the default skin.


Advertisement: