Forum


Replies: 3   Views: 2543
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 arnaudbouchard  · 01-11-2017 - 01:05

I am using the 7.5 version, Advanced license.

From what I understand the searchAndHighlight function only works for a know string of text. In my case, I want to highligh a block of text contained between two $BLOCK_xxx$ placeholders. There could be multiple block of texts enclosed with these placeholders as well in the template, and my script doesn't know in advance what the text inside will be.