For example, Tencent Cloud. I found a tty.js before. It seems to be a front-end and back-end integration system written in node.js. I hope there is only a bare front-end. I have the back-end that I sent here. Data, is there such a component or library?
大家讲道理2017-05-24 11:38:29
If it is just a front-end display that does not include interaction and does not require any components or libraries, just use the pre
tag:
<pre class="ansi">
这是命令行文本
</pre>
If you still want to support colors, you can use ansi-html to handle it.
If you still want to include line numbers, etc. you can use: highlight.js
伊谢尔伦2017-05-24 11:38:29
There are also many open source ones:
PHP: official website, https://github.com/nickola/we...