Hello all,
I hope this is the right forum to post this in, since I am not an extension writer...
I manage a forum (phpBB 3.3.5) for which code sharing in a variety of languages is very important. For syntax highlighting, Codebox Plus is used. The extension was abandoned a long time ago, but with some help of david63 and kasimi it is still going strong on the most recent phpBB.
Now the wish is to add a Knowledge Base to the forum, not unlike the Knowledge Base present here. For this we'll be using
https://github.com/Crizz0/knowledgebase
Both extensions work nicely, but I can't get my head around how to make sure that Codeboxes are rendered inside the Knowledge Base. It's not just a matter of adding Codebox Plus to the editor (which can be done with events in HTML), but once the posts are rendered, the Codebox BBCode results in a "normal" codebox only. Even though other BBCodes work.
Codebox Plus in a "normal" post:
Codebox Plus in a Knowledge Base post:
I am not an extension writer and don't really know php so this goes a little over my head. I also don't know whether this is involves an addition to Knowledge Base, Codebox Plus or both. What I have done, though, is this:
I posted Codebox Plus on GitHub, working nicely for 3.3.5:
https://github.com/nou-nou/phpBB-Extension-Codebox-Plus
Also a fork of Knowledge Base, but no adjustments have been made there:
https://github.com/nou-nou/knowledgebase
Lastly I set up a test board with the above two extensions (as posted on GitHub) here:
https://www.wesuckless.dev/phpBB3.3.5/index.php
Hope someone can please take a look and help me on my way
Thanks!