这里我们需要将选中的文本包装到选定的样式标签中,并使用这个新的字符串替换文档里选中的文本。
Here, we need to wrap the selected text into the selected style tags and replace the selected text in the document with this new string.
替换字符串中的前导 \= 要求 substitute() 对随后的表达式求值并使用结果作为替换文本。
The leading \= in the replacement string tells substitute() to evaluate the expression that follows and use the result as the replacement text.
应用推荐