开发者

prettify doesn't highlight asp.net tags

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜