I need to let users post their source code in comments. In order to use <pre lang=””> in comments, I uncommented the relevant part in wp-syntax/wp-syntax.php, as suggested here and it’s working fine.
The problem is that all the text between ‘<‘ and ‘>’ is wiped from the post (brackets included). As an example, the following comment:
x = 3 < 4 or 5 > 2
is saved as:
x = 3 2
Is there a way to fix?
Thanks for the good work,
- The topic ‘[Plugin: WP-Syntax] Code between < > not preserved in comments’ is closed to new replies.