Hello! I have a forum and in the posts of my users, they can add codes to display them using the bbcode tag [code] [/ code] .
I'd like to know how to do stylize code, just as it happens here in SOpt. Any code that I enter, it will apply colors, regardless of being php, html, javascript ....
Below is an image of my code viewer, currently:
HowIwouldlikeittobe:
My main questions are:
- How to do this
- Is there any ready-made library I can use?
- Will this make the page load slower / more compromised?