Excuse me, now I can get a json html file, but the html only has the article theme and no other styles. Is there any way to render its style?
Are you using webview to display HTML? If so, then it should be the same as web code highlighting. That is, you need to parse the html and then embed a code highlighting js into it, such as highlight.js, etc.
Google has a streamlined and efficient code highlighting solution, it seems to be called pretty code, it is a js library, you can check it out
Are you using webview to display HTML? If so, then it should be the same as web code highlighting.
That is, you need to parse the html and then embed a code highlighting js into it, such as highlight.js, etc.
Google has a streamlined and efficient code highlighting solution, it seems to be called pretty code, it is a js library, you can check it out