开发者

How do I create a code snippet that appears on the current line?

开发者 https://www.devze.com 2023-03-04 16:04 出处:网络
I\'m trying to create an HTML code snippet for vs 2010. The snippet so far is: <Code Language=\"html\"><![CDATA[<%= this.Resource(\"$resourceKey$\") %>]]></Code>

I'm trying to create an HTML code snippet for vs 2010. The snippet so far is:

<Code Language="html"><![CDATA[<%= this.Resource("$resourceKey$") %>]]></Code>

However when I test this from a view page, the snippet appears on the next line. For example:

<h1>
<%= this.Resource("Blah") %><h1>

I wa开发者_StackOverflow社区nt it to appear on the current line. Can't find any solutions online so can anyone help?

0

精彩评论

暂无评论...
验证码 换一张
取 消