语法荧光笔 3.0 无法在 blogspot 上运行
语法荧光笔 3.0 无法在我的博客上运行。我直接使用网站上的最新版本。问题是: 如果我在代码中写入#include,我就会得到它的结尾。没有文字换行。该博客的链接是 http://snacksforyourmind.blogspot.com。我还检查了选项,但除了我已经启用的 bloggerMode 之外,他们什么也没提供。所有问题都可以在页面顶部的第二个代码中看到。有人知道如何解决它吗?
Syntax highlighter 3.0 is not working on my blog. I use the newest version right from the website. The issues are:
If I write #include in my code, I get at the end of it. There's no text wrapping. The blog's link is http://snacksforyourmind.blogspot.com. I also checked out options but they give nothing but bloggerMode which I already enabled. All the issues are visible in the second code from top of the page. Does anybody have some idea how to fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的模板,SyntaxHighlighter JavaScript 代码可能会在内容加载之前运行。在这种情况下,将代码更改为在短暂超时后运行应该可以解决问题。在模板 HTML 的
中尝试此操作:
您可以在调用
ScriptHighlighter.all()
之前添加对默认值的进一步自定义。如果要自定义 SyntaxHighlighter 代码显示的外观,请添加一些 CSS,如下所示:
!important
是覆盖 SyntaxHighlighter 主题定义所必需的。Depending on your template, the SyntaxHighlighter JavaScript code may run before the content has loaded. In that case, changing the code to run after a short timeout should fix the problem. Try this in the
<head>
of your template HTML:You can add further customisation of defaults before the call to
ScriptHighlighter.all()
.If you want to customise the look and feel of the SyntaxHighlighter code display, add some CSS like this:
The
!important
is necessary to override the SyntaxHighlighter theme definitions.