i make this code while requesting from some one to do it but i think it need some magic touch ! from some one here on this great forum
need the way to mark all the text inside the php by clicking on a new icon like "mark text" then "copy code" icon so as to paste it without useing the right click then copy and sooo on !!
anyway here what i have
open ur bbcode_php and replace all by this code :
PHP Code:
<script type="text/javascript">
function selectText(strTxtArea){
document.getElementById(strTxtArea).focus();
document.getElementById(strTxtArea).select();
}
function CopyToClipboard()
{
CopiedTxt = document.selection.createRange();
CopiedTxt.execCommand("Copy");
}
</script>
<form name="Form1">
<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:4px">$vbphrase[php_code]:</div>
<div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start -->$code<!-- php buffer end -->
</div>
</code>
</div>
<input type="button" onClick="CopyToClipboard()" value="copy code" />
</div>
</form>