I found there is a bug in this highlight editor: http://cshe.ds4a.com/
The following ASP.Net code can't be highlighted correctly
<%@ Page Title="<%$ Resources: XXX %>" Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
The problem is about the regular expression, how can I find this whole line by regular expression?
I am using the RegExp from ActionScript3
The main challenges are:
The <%@ %> instruction may contains another <%$ %> instruction in its attribute, just like the one above
The <%@ %> instruction may have a line break in it, just like the following.
<%@ Page Title="<%$ Resources: XXX %>" Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
3 . The <%@ %> instruction may followed by another <%@ %> without any space / line-break
<%@ Page Title="<%$ Resources: XXX %>" Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %><%@ Import Namespace="System" %>
Thank you