Formatted text box (code sample)

0

I need to display information on the screen, but it needs to be displayed as a code (javascript, c #) formatted and colored (code sample), is there any jquery component or something like that?

Example

$('#ID').click(function (){ alert("Hello Word!")});
    
asked by anonymous 25.05.2016 / 15:18

1 answer

1

Take a look at this plugin: link

It is used inside another plugin that I have already used where I work called Froala Editor.

Inside the Froala Editor is the Code Mirror that takes care of the indentation and coloring of the generated html code. It has support for other languages also like Javascript, C #, Java and etc ...

    
25.05.2016 / 15:43