Copy link to clipboard
Copied
Hi all,
I need a script which insert a tab before UPPERCASE text in "[Paper]" color. Would it be possible?
Thanks in advance,
Rogerio
Copy link to clipboard
Copied
You don't need a script. In the Grep tab of the Find/Change window:
Find what: (?=\u\u+)
Find format: [Paper] colour
Change to: \t
Copy link to clipboard
Copied
Hi Peter, thanks for that! It worked just as expected. 🙂
I just noticed that some uppercase text contain a anchored object right before it in the documents I'm currently working on. Therefore, the provided GREP is not finding them 😞
Do you know any GREP which add a tab in the midle of an object and uppercase text?
Thanks again for your help!
Regards,
Rog
Copy link to clipboard
Copied
Try this:
(?=~a?\u\u+)
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Edit your "Hyperlink" char style and change its color to [paper]
Then Find: ^(?=~a?\u)
(^/) The Jedi
Copy link to clipboard
Copied
Hi @FRIdNGE, thanks for checking! 🙂
The tab should go right after the anchored object and not before. Would it be possible?
Thanks,
Rog
Copy link to clipboard
Copied
I don't know if a script is doable, but why don't you simply run a Find-Change?
Edit: too slow…