Syntax Highlighter addon displays formatted source code using the highlight.js JavaScript library in the content of forum posts. This addon supports almost all programming languages including Apache, C#, C++, CSS, HTML, XML, JSON, Java, JavaScript, Objective-C, PHP, Perl, Python, Ruby, SQL, Basic, TypeScript, VB.NET with dozens of different syntax highlighting styles. With these addons, your forum users can insert different scripts and codes using the [<>] code toolbar button in the post editor. In the dashboard settings, you can enable/disable certain programming languages and change the highlighting style.
<!DOCTYPE html> <html> <body> <h2>What Can JavaScript Do?</h2> <p id="demo">JavaScript can change HTML content.</p> <button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button> </body> </html>