博主的代码格式化 SyntaxHighlighter 抛出错误
我正在使用 SyntaxHighlighter for blogger 来格式化我在博客中使用的代码片段。我按照博客中给出的步骤进行操作(http://concise -software.blogspot.com/2010/03/enabling-syntaxhighlighter-in-blogger.html),但随后它在我的博客文章的页面加载时抛出错误,说“找不到 CSS 画笔”
I'm using SyntaxHighlighter for blogger to format the code snippet I use in my blog. I followed steps given in a blog (http://concise-software.blogspot.com/2010/03/enabling-syntaxhighlighter-in-blogger.html) but then it throws error on page load of my blogger post saying "Can't find brush for : CSS"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
从 stackoverflow 上的另一个线程得到解决方案
Got solution from another thread on stackoverflow
对于其他正在寻找此问题解决方案的人 - 确保您在 中引用 shBrushCss.js 库。像这样的标签:
另外,您可以在 http://oneqonea.blogspot.com/2012/04/how-do-i-add-syntax-highlighting-to-my.html
这是我写的一个非常容易关注的博客,其中包括通过几个简单的步骤(带有屏幕截图)从上到下向您的 Blogger 博客添加语法突出显示。
For others looking for a solution to this problem - Make sure you're referencing the shBrushCss.js library from within your <head></head> tag like so:
Also, you can checkout this answer's source at http://oneqonea.blogspot.com/2012/04/how-do-i-add-syntax-highlighting-to-my.html
It's a really easy to follow blog that I wrote that covers adding syntax highlighting to your Blogger Blog from top to bottom in a few easy steps (with screenshots).
如果您经营博主博客,则可以按照下面说明的以下步骤来集成 SyntaxHighlighter。
我已经很好地解释了: 如何向 Blogger 添加语法荧光笔
If you run a blogger blog, you can follow the following steps explained bellow to integrate the SyntaxHighlighter.
I've nicely explained: How to Add Syntax Highlighter to Blogger
我在模板头部分的末尾写道:
接下来我在我的文章中写道:
您可以在此处查看示例。
I wrote in the end of template head section this:
Next i wrote in my articles:
You can example here see.