Character styles, lost during 'Find and replace' macro
Posted: 2016-02-10 13:50:09
Hello,
I'm using a macro to change guillemets for «» and viceversa. It works well, but any character style applied inside the selected text is erased. I tried using the u and U options in the 'Find and Replace' commands, but the macro stopped working.
The first part of my macro is as follows:
I wanted to use the properties 'EsauU', but it stops working. Any idea?
I'm using a macro to change guillemets for «» and viceversa. It works well, but any character style applied inside the selected text is erased. I tried using the u and U options in the 'Find and Replace' commands, but the macro stopped working.
The first part of my macro is as follows:
Code: Select all
$findquotes = '«(.+?)»'
$replaceguillemets = '\“\1\”'
$guillemetsquotes = Find and Replace $findquotes, $replaceguillemets, 'Esa'