m (signature) |
|||
Line 3: | Line 3: | ||
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 | :<s>Yes, it would be possible to do most of that. HOWEVER.</s> In order for it to : | ||
:* work, we need the "select all" javascript in the skin | :*work, we need | ||
:** we need the "select all" javascript in the skin | |||
:** we need to change the code put out by {{Tag|code}}. It needs to include the {{Tag|a}} part, since you can't do "onclick" in wikitext. | |||
:* look good, we will need some skin changes for the <.code> and <.pre> tags. | :* 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 [[User:AngelinaBelle/sandbox]], using the Classic vs. the default skin. | |||
:To see the effect of <.pre> skin changes, Please look at [[User:AngelinaBelle/sandbox]], using the Classic vs. the default skin. --[[Image:Doc writer badge.png|frameless|x11px|link=User:AngelinaBelle]] [[User:AngelinaBelle|AngelinaBelle]] ([[User_talk:AngelinaBelle|talk]]) 11: | :The problem code is: | ||
: <pre><a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></pre> | |||
: The new code for {{Tag|code}} could be: | |||
<pre><div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"> | |||
[Select]</a></div> <code class="codebody"><pre></pre> | |||
<pre></pre></code></pre> | |||
--[[Image:Doc writer badge.png|frameless|x11px|link=User:AngelinaBelle]] [[User:AngelinaBelle|AngelinaBelle]] ([[User_talk:AngelinaBelle|talk]]) 11:43, 2 March 2011 (EST) |
Revision as of 16:43, 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 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
<code></code>
. It needs to include the<a></a>
part, since you can't do "onclick" in wikitext.
- look good, we will need some skin changes for the <.code> and <.pre> tags.
- work, we need
- To see the effect of <.pre> skin changes, Please look at User:AngelinaBelle/sandbox, using the Classic vs. the default skin.
- The problem code is:
<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a>
- The new code for
<code></code>
could be:
<div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"> [Select]</a></div> <code class="codebody"><pre>
</pre></code>
-- AngelinaBelle (talk) 11:43, 2 March 2011 (EST)