wskplho / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

prettify doesn't highlight asp.net tags #166

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 can see that prettify is working because i see the css style applied to the 
pre tag, but it seems that it is unable to recognize the asp.net tags, the only 
thing i see is the button, but as regular button, not as code snippet. 

Original issue reported on code.google.com by ofer.web...@gmail.com on 14 Aug 2011 at 3:47

GoogleCodeExporter commented 8 years ago
I see the attached.  Is that similar to what you see?  If so, could you be more 
specific about what is wrong?

I used the HTML

<pre class="prettyprint lang-html" id="asptags">
<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>
</asp:ScriptManager>
</pre>

Original comment by mikesamuel@gmail.com on 30 Mar 2012 at 6:34

Attachments: