ASP syntax coloring
Posted: Mon Nov 20, 2000 6:08 pm
I recently upgraded to 4.4 and had a problem getting the syntax coloring to work on my asp files the same as it did in v4.22. The ASP end syntax marker "%>" will not be recognized by TextPad if preceeded by a letter. This is havoc on the eyes when accustomed to reading with wonderful syntax coloring statements such as:
<%If bFound Then%>
..HTML..
<%Else%>
..HTML..
<%End If%>
My asp_vb.syn file header is as follows:
C=1
[Syntax]
Namespace1 =
IgnoreCase = Yes
InitKeyWordChars = A-Za-z!
OperatorChars = +-*/\()&=<>
KeyWordChars = A-Za-z0-9_-
PreprocStart =
SyntaxStart = <%
SyntaxEnd = %>
CommentStart = /*
CommentEnd = */
CommentStartAlt = <!--
CommentEndAlt = -->
SingleComment = '
SingleCommentAlt = //
SingleCommentCol =
StringStart = "
StringEnd = "
At first I thought that changing the "SyntaxEnd = %>" to "SyntaxEnd=%>" would work, but this was not a solution. I love using TextPad, and I like the improvements in v4.4, but for now I have reverted to 4.22 since I don't want to have to add a space in front of all of the %> tags. Is there possibly a solution or workaround that I am not discerning?
-N
<%If bFound Then%>
..HTML..
<%Else%>
..HTML..
<%End If%>
My asp_vb.syn file header is as follows:
C=1
[Syntax]
Namespace1 =
IgnoreCase = Yes
InitKeyWordChars = A-Za-z!
OperatorChars = +-*/\()&=<>
KeyWordChars = A-Za-z0-9_-
PreprocStart =
SyntaxStart = <%
SyntaxEnd = %>
CommentStart = /*
CommentEnd = */
CommentStartAlt = <!--
CommentEndAlt = -->
SingleComment = '
SingleCommentAlt = //
SingleCommentCol =
StringStart = "
StringEnd = "
At first I thought that changing the "SyntaxEnd = %>" to "SyntaxEnd=%>" would work, but this was not a solution. I love using TextPad, and I like the improvements in v4.4, but for now I have reverted to 4.22 since I don't want to have to add a space in front of all of the %> tags. Is there possibly a solution or workaround that I am not discerning?
-N