rio:
--------------------------------------------------------------------------------
This duplicating current tab would be greatly helpful! ;-)
--------------------------------------------------------------------------------
Opening ReadOnly Copy works with the saved content only - probably this is
suitable in most cases;
To duplicate unsaved content of the tab an easy script can be used.
vbr
e.g.
////////... PSPad\script\JScript\duplTab.js//////////
var module_name = "duplTab";
var module_ver = "1";
function duplTab(){
if (editorsCount()<1){return;}
var actEd = newEditor();
actEd.assignActiveEditor();
var actEdTxt = actEd.text();
var actFileName = actEd.fileName();
var duplEd = newEditor();
duplEd.newFile("copy_of_"+actFileName);
duplEd.text(actEdTxt);
if (actEdTxt != duplEd.text()){
echo("The content of the duplicated tab is NOT exactly IDENTICAL to the source
tab!\nE.g. some unicode characters beyond the default codepage may have been
lost.");
}
}
///////////////////////////////////////////
--
<http://forum.pspad.com/read.php?2,48701,48703>
PSPad freeware editor http://www.pspad.com