作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 blogspot.com。
我想让我的编码突出显示。
所以,我使用google code prettify api。
<link href='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css' rel='stylesheet' type='text/css'/>
<pre class="prettyprint"> ... my coding place ... </pre>
一切都很好,但我想做滚动(比如 ., style="overflow-x: scroll")
请让我知道我应该在哪里修改以在 blogspot.com 上滚动我的代码
最佳答案
对于寻求解决此问题的其他人 - 您应该结帐:
http://oneqonea.blogspot.com/2012/04/how-do-i-add-syntax-highlighting-to-my.html
这是一个非常简单的“Blogger 语法高亮”教程,包含屏幕截图和所有内容。
您应该只需几分钟即可启动并运行。
关于syntax-highlighting - 在 Blogspot 上通过滚动来突出显示语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8471260/
有没有一种方法可以“标记”对象的属性,使它们在反射中“突出”? 例如: class A { int aa, b; string s1, s2; public int AA
我是一名优秀的程序员,十分优秀!