If the code to be highlighted is initially hidden and wants to be displayed, you need to call prettyPrint( ; id = '#divBody' i; if($(id).is(":hidden")){
3. The default code does not wrap lines. To automatically wrap lines, you can modify prettify.css and change the original value of white-space pre to pre-wrap:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn