Notifications
Clear all

wpForo 1.x.x [Closed] PrismJS addon?

5 Posts
2 Users
0 Reactions
1,129 Views
Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 5 years ago

Would you consider creating a prism js addon? The code formatting options here are not very convenient to use and I really badly need this functionality.

4 Replies
Sofy
Posts: 4585
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @florian,

I'm sorry, but not yet. I suggest you check out the following support topic it should help you:  https://wpforo.com/community/how-to-and-troubleshooting-2/wpforo-and-syntaxhighlighter-evolved/#post-21167

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 5 years ago

Thank you for that link. I was actually able to add prism to the forum tinyMCE editor with help of a Stackoverflow user. The only problem now is that the forum doesn't apply the styling. It only works in the editor.
Is there a way to show the styling in the post as well? CSS and JS code is added, the forum posts just ignore it.

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 5 years ago

This is how it looks in the editor

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 5 years ago

But it looks like this in the post itself