如何让Google Prettify更像Visual Studio [英] How to get Google Prettify to render more like Visual Studio
本文介绍了如何让Google Prettify更像Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Googles优秀代码Prettify ,而且非常高兴。
I'm using Googles excellent Code Prettify and I'm quite happy with it.
但是:有没有人碰巧有一个替代的CSS样式表,所以它会渲染一些像Visual Studio默认着色?绿色注释,红色文字/字符串等。
But: Does anybody happen to have a alternate CSS stylesheet so it'll render a bit more like Visual Studios default coloring? Green comments, red text/strings, etc.
推荐答案
这花了我一会儿, >我的Visual Studio的颜色配置。享受。
It took me a while but I replicated exactly my Visual Studio's color configuration. Enjoy.
.com { color: #008000; }
.str, .tag { color: #A31515; }
.kwd, .atv { color: #0000FF; }
.typ { color: #2B91AF; }
.lit, .atn { color: #FF0000; }
.pun, .pln { color: #000000; }
.dec { color: #800080; }
注释为绿色,字符串/标签偏红,关键字为蓝色,类型为蓝色,数字为红色, ,声明紫色。
Comments are green, strings/tags reddish, keywords blue, types bluish, numbers red, punctuation black, declarations purple.
这篇关于如何让Google Prettify更像Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文