<u>

Script key

Posted by phil, @the_hermit_9

Install

Details

Label <u>
Voice Over
Script
// Create underline tag w/ break

var sel = getSelectedText();
var selRange = getSelectedRange();

if (!sel || sel.length == 0) {
  setSelectedText("<u>"+"</u>");
  setSelectedRange(selRange[0]+3,0);
}
else {
  setSelectedText("<u>"+sel+"</u>");
  setSelectedRange(selRange[0]+selRange[1]+3,0);
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus