App icon 1Writer

Highlight

Shared by Piotr Magdziak

Highlight selected text

Script

var SelectedText = editor.getSelectedText();  //get selected text

SelectedText = "<mark>"+SelectedText+ "</mark>";

editor.replaceSelection(SelectedText);