15Nov

SyntaxHighlighter3.0.83 自动换行

浏览:
评论:0

在SyntaxHighlighter的当前主题样式文件中找到

.syntaxhighlighter .line {
white-space: pre !important;
}

将其注释或删除

.syntaxhighlighter .line {
/*white-space: pre !important;*/
}

就可以实现自动换行。

例如:

 

.syntaxhighlighter .line {
right: auto !important;
text-align: left !important;
top: auto !important;
vertical-align: baseline !important;
width: auto !important;
box-sizing: content-box !important;
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-weight: normal !important;
font-style: normal !important;
font-size: 1em !important;
min-height: inherit !important;
min-height: auto !important;
}

 

发布:DT27 分类:编程杂项 引用:0

评论列表

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。