How to Have OPERA Copy with Formatting

1. Search for ‘standard_menu.ini
Normally it’s under C:Program Files\Opera\ui

2. Open ‘standard_menu.ini‘ and seach for ‘Hotclick Popup Menu

3. Add below code below ‘Item, M_COPY_TO_NOTE=Copy to note’ :

Item, Copy with formatting=Go to page, “javascript:function sS() {var s = window.getSelection();if (s.getRangeAt && s.rangeCount) {return s.getRangeAt(0);}return null;}function rS(range) {if (range) {var s = window.getSelection();s.removeAllRanges();s.addRange(range);}}”,,”Copying with formatting” & Go to page, “javascript:void(tmp=sS());void(document.designMode=’on’)” & Delay, 300 & Go to page, “javascript:void(rS(tmp))” & Delay, 300 & Copy & Delay, 300 & Go to page, “javascript:void(document.designMode=’off’) 

4. Save

5. Restart Opera

6.  Select text and from Right-Click context menu choose “Copy with formatting“. Done.

This entry was posted in Computer science and tagged , . Bookmark the permalink.

One Response to How to Have OPERA Copy with Formatting

  1. annoporci says:

    Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s