suggestion for Special Copy

Started by: kinghoo2 voices2 posts

In PL/SQL Developer, you can use Special Copy to copy some text into your codes.
For example,u can copy
select * from
abc

as Java Code:
"Select * Fromn" +
"abc";

or as Delphi:
'Select * From' + #13#10 +
'abc';


In EmEditor, you can use Copy in Quotes, but it can only add quotes in front of line,not like above.I think it is useful for programmars.
I don't want to make it a core feature because of my principle --- avoid bloated feature set ---.

However, I created a macro for you. Although it is not perfect, you can do the rest of work to make it perfect for you. This is for Java.


str = clipboardData.getData("Text");
str = """ + str.replace(/rn/mg,"n" +rn"") + "";";
document.write( str );

2 posts in this topic