cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to define style for processing instructions in Arbortext Editor Styler?

hbestler
12-Amethyst

How to define style for processing instructions in Arbortext Editor Styler?

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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

Top Tags