Codebox like here
5 posters
Page 1 of 1
Codebox like here
How to have the select all
like here?
like here?
- Code:
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Re: Codebox like here
We don't have that option yet.
Maki1- Hyperactive
- Posts : 2529
Reputation : 442
Language : English »» CSS Stylesheet
Location : The » Support » forum » Section! • No support by PM If you need custom theme please contact me!
Re: Codebox like here
I think forumotion will make a tutorial about this. i have done that for some weeks ago (: in my forum ;D
Guest- Guest
Re: Codebox like here
thank!s!
but do you know how to do?
but do you know how to do?
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Re: Codebox like here
I would also like to know
Thegun- New Member
- Posts : 2
Reputation : 0
Language : English
Re: Codebox like here
I think it is a future feature in the forums, watch the language, french, so it gives me to think that they are developing (from forumactif, france). summarize: we have to wait (i think xD)
Re: Codebox like here
- Code:
<script>function selectCode(a)
{
// Get ID of code block
var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
// Not IE
if (window.getSelection)
{
var s = window.getSelection();
// Safari
if (s.setBaseAndExtent)
{
s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
}
// Firefox and Opera
else
{
// workaround for bug # 42885
if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>')
{
e.innerHTML = e.innerHTML + ' ';
}
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
}
// Some older browsers
else if (document.getSelection)
{
var s = document.getSelection();
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
// IE
else if (document.selection)
{
var r = document.body.createTextRange();
r.moveToElementText(e);
r.select();
}
}
if(text){}else{ var text = 'Selecionar todos';}
jQuery(document).ready(function(){
jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this); return false;"><font face="verdana" color="white"> </font>Select All</a>');
});
</script>
Re: Codebox like here
where to put it?
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Similar topics
» .codebox syntax highlighting for programming languages
» codebox
» Color syntax of codebox
» Codebox Scroll Broken
» Make some clean up with codebox and quotebox
» codebox
» Color syntax of codebox
» Codebox Scroll Broken
» Make some clean up with codebox and quotebox
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum