The question is how to make a field for the code on the site, this is already implemented in libraries as I understand it?
console.log('Поле с кодом, как тебя звать'); //на подобии такого поля, я просто не знаю как это даже называется I will be glad to any help. any hints, at least as it is called. Thank!
Specifically, this field is of interest with numbering, and with the button select all, and with highlighting 
The tip was used by highlight.js. Who will tell you how to use it? It seems to have done as it is written, but something is not all the same.
$(document).ready(function() { $('pre code').each(function(i, block) { hljs.highlightBlock(block); }); }); <html> <head> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/default.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script> </head> <body> <pre><code class="html"> <form action="" method="POST"> <input type="text" name="name" value="test"/> <input type="submit" name="button" value="button"/> </form> </code></pre> </body> </html>
<code></code>- HamSter