They say they want to use Syntax Highlighter and only convert and show it when loading the page for the first time. I want to change the html phrase after adding it to the format with jquery.

Asked 2 years ago, Updated 2 years ago, 37 views

You are trying to use Syntax Highlighter. The code is written to look like node.js or input window.

Once I tested it temporarily, I left it for the first time because it wanted to work out, and now I checked it again

<pre class="brush:html;">sdsadsadsa    </pre>

I couldn't convert it even if I added it through jquery according to the format.

Can you tell me how to use Syntax Highlighter? Or, please recommend a code converter other than this.

jquery javascript

2022-09-22 18:53

1 Answers

According to Document, HTML tags should be escaped with &lt;. Does jQuery handle that part when it's dynamically crumpled?


2022-09-22 18:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.