XF 2.1 Template modifications syntax error

BassMan

Well-known member
In XF 2.0 I can do TMs like this:

193697


And in another TM I add </xf:if>. This is useful so you don't have to select a bunch of code. Now in XF 2.1 I can't create such TM, because it says syntax error.

Is there any way I can do it in XF 2.1?

Thank you.
 
I know it doesn't answer your question, but you can use regular expressions to more easily select a bunch of code. You really should never select more than a single line of code in a normal TM, since themes or other addons may have already modified that particular line. Especially themes, they may not use tabs (instead using spaces) and as such the TM will fail.

With a properly targeted regular expression, those issues are avoided :)
 
Back
Top Bottom