Page 1 of 1

emphasis role="strong": quick way to enter

Posted: Tue Feb 18, 2014 1:30 pm
by mike004
I need to mark up a lot of strings as bold text, using <emphasis role="strong">

<emphasis role="strong">hello</emphasis>

Using Ctrl-E, I can quickly wrap a string with <emphasis>. But is there a way to avoid manually typing in the role="strong" attribute.

Maybe I can temporarily set role="strong" to be the default attribute for all emphasis elements?

Re: emphasis role="strong": quick way to enter

Posted: Tue Feb 18, 2014 2:00 pm
by mike004
Looks like I can do this by creating a code template:
<emphasis role="strong">${selection}</emphasis>

Select the text to wrap, press Ctrl-Space, then choose the code template.
Quicker than typing it all in manually!