Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi,
does anybody know if it is possible to define e.g. another colour for Processing instructions? Our customer use processing instructions, and sometimes users accidentely delete this pi's. Therefore we would like to define the pi's with red colour.
Unfortunately we did not found anything in the Arbortext Styler to do this. We fear that this is not possible.
Anybody an idea?
Thank you in advance.
Solved! Go to Solution.
You can do this in Styler by adding an element called "_pi". That will catch all PIs, and you can color them by modifying the Text Shading attribute.
If you need to be more selective, e.g. use different colors for different PIs, you can do that by adding conditions. Use an XPath condition like this:
self::processing-instruction("NameOfPi")
That will capture all instances of <?NameOfPi?> and apply formatting to them.
You can do this in Styler by adding an element called "_pi". That will catch all PIs, and you can color them by modifying the Text Shading attribute.
If you need to be more selective, e.g. use different colors for different PIs, you can do that by adding conditions. Use an XPath condition like this:
self::processing-instruction("NameOfPi")
That will capture all instances of <?NameOfPi?> and apply formatting to them.
Hi Clay,
perfect! thank you!!! That was absolutely what we are searching for!!
It is interesting, that the official german support of PTC told us, that this is not possible
PTC Community is in future the first contact point for me