How to use wpForo with SyntaxHighlighter Evolved
I want to post source code on my forum with nice format, I'm using plugin SyntaxHighlighter Evolved on my blog, how can I use SyntaxHighlighter Evolved on wpForo forum?
I think it works with post 'the_content' filter hook. I'd recommend pass wpForo post content through this filter. Try this instruction:
1. Create a /wpforo/ folder in your WordPress active theme folder.
2. If you use the Extended Forum Layout copy the /layouts/ folder from /wpforo/wpf-themes/classic/ directory to the /wpforo/ folder in WordPress active theme.
3. Open just copied /wpforo/layouts/1/post.php file.
4. Find this line:
<?php echo wpforo_content_filter( wpforo_kses($post['body'], 'post') ) ?>
5. Replace to this:
$post_content = wpforo_content_filter( wpforo_kses($post['body'], 'post') );
echo apply_filters('the_content', $post_content);
I don't think this is wpForo issue, the line it works is the last line and it doesn't have wpForo functions in it. Try to deactivate other plugins.
I change the content in wpforo_content_filter, but it replace "&&" by "&&" and "->" by "
How can I solve it?
I have the same issue. BTW, which Syntax Highlighter Evolved settings are you using to get your look? That is:
- 1.5 spaced lines
- the color scheme
- the background with ruled linkes