开发者

prettify doesn't highlight asp.net tags

开发者 https://www.devze.com 2023-03-28 02:51 出处:网络
I use google-code-prettify as my syntax highlighter, but i have a problem with asp.net tags, prettify doesn\'t recognize it, so code like this:

I use google-code-prettify as my syntax highlighter, but i have a problem with asp.net tags, prettify doesn't recognize it, so code like this:

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
       <asp:Button ID="SubmitButton" 
                   runat="server" 
                   Text="partial postback" 
                   onclick="SubmitButton_Click" />

      <a href="#" id="clientClick"><span>jQuery</span></a>
     </ContentTemplate>
    </asp:UpdatePanel>

is ignored. i have noticed that stackoverflow is also using prettify. so i w开发者_如何学JAVAonder how they do it?


Prettify author here. If you have a code sample that demonstrates the problem, file a bug at http://code.google.com/p/google-code-prettify/issues/entry and I'll look into it.

0

精彩评论

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

关注公众号