Formatted text box(code sample)

Asked

Viewed 91 times

0

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

Example

$('#ID').click(function (){ alert("Hello Word!")});
  • Here is an example of another colleague made with jquery UI: http://jsfiddle.net/eraj2587/Pm5Fr/14/ ... As for modifying exactly the browser (browser) Alert box I do not think it is possible

1 answer

1


Take a look at this plugin: https://codemirror.net/

It is used inside another plugin I’ve used where I work called Froala Editor.

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

  • Thanks for the tip @Raphaelrosa

Browser other questions tagged

You are not signed in. Login or sign up in order to post.