2020-04-22, 06:50 PM
Hello everyone,
I want to install PrismJS code highlighter, I'll use only C++ syntax highlighting, I installed CSS and uploaded the JS file into mybb/jscripts/prism.js
Now, as I am new to this, IDK what to do next, where should I add script and href the prism CSS if needed?
EDIT: I tried this as replacement in MyCode, but it isn't working (at least in MyCode preview)
<pre><code class="language-cpp">$1</code></pre>
EDIT 2: Actually, it's working, sorry for opening this, I figured it out myself!
I want to install PrismJS code highlighter, I'll use only C++ syntax highlighting, I installed CSS and uploaded the JS file into mybb/jscripts/prism.js
Now, as I am new to this, IDK what to do next, where should I add script and href the prism CSS if needed?
EDIT: I tried this as replacement in MyCode, but it isn't working (at least in MyCode preview)
<pre><code class="language-cpp">$1</code></pre>
EDIT 2: Actually, it's working, sorry for opening this, I figured it out myself!