Forum


Replies: 4   Views: 4290
Highlight/background color for templatevariable
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 Andrew Goodricke  · 17-10-2013 - 10:45

Hi,



thanks for the reponse, I switched over to using:




$html = '<span style="font-family: Arial;font-size:11pt;background-color: yellow;">9</span>';
$docx->replaceTemplateVariableByHTML('FIELD_BK', 'inline', $html);


but I still don't get a highlighted background.



I tried setting the colour with a #ffff00 with the same result.  Any other suggestions would be greatly welcomed.