Page 1 of 1

Colour coding asp script files

Posted: Tue Feb 24, 2004 11:06 am
by colinh
The colour coding feature which works on asp files, highlighting strings, html & vbscript etc. is great, but at the moment it doesn't handle vbscript comment lines correctly.
This bit of code, in a .asp file, illustrates the problem:

<html>
Some html
<%
fred=test
eric="A string"
'this is a comment line which breaks the colour coding
see="it is now broken"
%>
Some more html
</html>

Any chance of a fix?

Posted: Tue Feb 24, 2004 4:20 pm
by Bob Hansen
Have you tried modifying CommentStart/CommentEnd or CommentStartAlt/CommentEndAlt to use <% and %>

asp/vbscript syntax

Posted: Thu Mar 11, 2004 12:57 am
by sundevil
The <% and %> denote where there is asp/vbscript code not comments. ASP/VBScript uses the single quote ' as a comment character. I have tried endless ways to get this to work but it seems that Textpad requires 2 characters minimum to work properly. Java's comment with two slashes // and it works fine.

I wish this could be solved, without having to resort to using two single quotes like this example.

<html>
Some html
<%
code code code code

'comment (proper)

''comment (should work but more hassle)

%>
Some more html
</html>