Prism HTML highlighter

后端 未结 6 1254
陌清茗
陌清茗 2020-12-16 11:50

I\'m using Prism and its working well for CSS:

p { color: red }

but

6条回答
  •  太阳男子
    2020-12-16 12:45

    Use to style html code.

    Also, you only need to escape the beginning of the tags with <, don't worry about the > characters. The easiest way is to paste your html code into the pre tag, then perform a find and replace for all < characters.

    This should work:

    
    
        
            
        
        
            
            
    
                <p class="red">red text </p>
            

提交回复
热议问题