Batch Find Replace in Selected Text?
i'm on windows 10 using dw cc/
i want able select block of text , replace multiple characters within @ once.
for example: select string cat , replace c , t b , m.
i can in entire document following these instructions reformatting files in dreamweaver: batch series of .dwr files (find , replace) consecutively, when change setupfindreplace() searchwhat value document selectedtext , run command, first searchstring (the c in example above) changed while t isn't changed. have run command second time replace second string. here's code i'm using:
// javascript document function canacceptcommand() { return true; } function commandbuttons() { return new array("go!", "doit()", "cancel", "window.close()"); } function doit() { dreamweaver.setupfindreplace({ searchstring: "c", replacestring: "b", searchwhat: "selectedtext", searchsource: true, useregularexpressions: false }); dreamweaver.replaceall(); dreamweaver.setupfindreplace({ searchstring: "t", replacestring: "m", searchwhat: "selectedtext", searchsource: true, useregularexpressions: false }); dreamweaver.replaceall(); window.close(); }
thanks!
that's how "selected text" works, though. restricts search highlighted text area , nothing more.
if want f&r entire document,
find in: current document.
search: source code
find: cat
replace: bam;
replace all
nancy o.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment