简体   繁体   English

Google带有Lex标签解析器代码的Prettify

[英]Google Prettify with Lex tag Parser Code

It appears Google Prettify doesn't like lex parser tags. Google Prettify似乎不喜欢lex解析器标记。 I've added the following to a blog post that uses prettify to format code: 我已在使用prettify格式化代码的博客文章中添加了以下内容:

<!-- Content -->
<div id="content" class="grid_8 suffix_1">
    {{ widgets:area slug="above-body" }}
    {{ template:body }}
</div>

The two lines of lex code (in between the {{ }}) disappear in the post. 这两行lex代码(在{{}}之间)在帖子中消失了。 If I change them to single brackets, they look OK. 如果将它们更改为单括号,则它们看起来不错。 I assume prettify uses a similar sort of tagging syntax, which would explain this. 我假设prettify使用了类似的标记语法,这可以解释这一点。 Is there a way around it? 有办法解决吗?

您没有链接到您的博客文章,并且在此页面上看起来还不错,所以我不能真正诊断问题,但是如果您想在http://code.google上使用HTML提交错误, com / p / google-code-prettify / issues / list我来看一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM