㎝ Add
Critic markup add

Script key: Critic markup add

Posted by wrk3

Install

Details

Label ㎝ Add
Voice Over Critic markup add
Script
// Surround selection with Critic Markup add syntax, 
// or insert syntax if no selection.
// Place cursor to insert new text if no selection.

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

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

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus