在Dreamweaver和CommonSpot库中使用#符号时出错

时间:2012-04-16 18:37:09

标签: coldfusion dreamweaver commonspot

有没有人知道如何在Dreamweaver中为CommonSpot管理库? (我对CommonSpot很新。)

CommonSpot在使用#符号的任何地方都会返回错误。不知怎的,我设法从库中删除了所有#符号。但是我想在Dreamweaver中创建库,它将库定义为以:

开头
<!-- #BeginLibraryItem ... 

由于#符号,这会导致问题。

CommonSpot有没有类似图书馆的东西?或者我可以使用任何转义符来实现这一目标吗?

1 个答案:

答案 0 :(得分:1)

CF必须评估评论。这里有几个想法。

  • 检查整个文件周围是否有cfoutput标记。如果是这样,请将其调整为不在评论
  • 周围

如果目前这个

<cfoutput>
...
<!-- #BeginLibraryItem ... -->
...
</cfoutput>

试试这个

<cfoutput>
...
</cfoutput>
<!-- #BeginLibraryItem... -->
<cfoutput>
...
</cfoutput>
  • 根据库评论的评估方式,可能有效的另一个选项是使用3个短划线而不是2来制作CFML评论以使#ignored
像这样......

<!--- #BeginLibraryItem ... --->