PHP / HTML / CSS and JAVASCRIPT script block

1

My question may be silly, but I really do not know and can not find it on the net.

I would like to add block scripts to my application, and in that block the script highlights functions, variables, and so on, just like in an editor itself.

Do you know any jQuery, javascript code that does this? Or the name of this feature.

I know the <code> tag exists, but it does not change color as I suggested. :

    
asked by anonymous 11.01.2017 / 18:17

2 answers

5

You need a syntax highlighter . There are some libraries out there that perform this task:

link

link

link

    
11.01.2017 / 18:22
3

There is a yes. It's the Syntax highlighting plugin

Found at link

I hope I have helped!

    
11.01.2017 / 18:22