简体   繁体   中英

WP-Syntax in post comments

I'm trying to apply the syntax highlighting of the WP-Syntax plugin into post comments. The changelog of the plugin suggests that this has already been done. Has anyone does this before?

If they've not implemented this, how can I do it? Which parts of the code should I read?

Editing the plugin solved the problem. The plugin uses the comment_text filter by default (one "before" and one "after"). Change it to the get_comment_text filter worked!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM