Colour coding asp script files

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
colinh
Posts: 1
Joined: Tue Feb 24, 2004 10:52 am

Colour coding asp script files

Post 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?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Have you tried modifying CommentStart/CommentEnd or CommentStartAlt/CommentEndAlt to use <% and %>
Hope this was helpful.............good luck,
Bob
sundevil
Posts: 1
Joined: Wed Mar 10, 2004 10:52 pm

asp/vbscript syntax

Post 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>
Post Reply