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.
精彩评论