Forum


Replies: 3   Views: 2389
Highlight block of text in docx template
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 01-11-2017 - 09:30

Hello,

You can use DOCXPath to insert a highlight tag to all w:rPr tags surrounded by the block placeholders.

To accomplish this you need to use a customQuery with the insertWordFragment method.

DOCXCustomizer, available only in Premium licenses, is the easiest way to accomplish what you need, as it allows to change DOCX styles on-the-fly.

As your username doesn't have any license tied, please send to contact[at]phpdocx.com the username or email of the user that has purchased the license.

Regards.