copy the formatting of the selected text and apply