editor variables for selecting text
Posted: Fri Jan 27, 2012 1:12 pm
I'd like to suggest a pair of editor variables to delimit part of the text that is returned by a selection plugin or code template. If we for the purpose of the following example name them ${ssel} for start selection and ${esel} for end selection you could create a code template like this:
When used the word "orange" would be selected and the user may choose to:
1) Overwrite with another word
2) Press left or right cursor keys to prepend or append text (e.g. change to "dark orange").
3) Invoke a selection plugin or any other command that operates on selected text
4) Use any cursor keys, click or command to leave the selected text as is
Code: Select all
<xsl:choose>
<xsl:when test="@color='${ssel}orange${esel}'">
</xsl:when>
</xsl:choose>
1) Overwrite with another word
2) Press left or right cursor keys to prepend or append text (e.g. change to "dark orange").
3) Invoke a selection plugin or any other command that operates on selected text
4) Use any cursor keys, click or command to leave the selected text as is