ASP Syntax

General questions about using TextPad

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

Post Reply
crknoll
Posts: 1
Joined: Wed Jun 04, 2003 1:51 pm

ASP Syntax

Post by crknoll »

When I edit an ASP file, the syntax highlighting does not seem to function as expected.

Cosider the following code:

----------------begin----------------------

'the following procedure builds a list with all categories
'if you need to change its design, you will need to do this in the procedure, inside the loop
Sub showCategories(connobj)

Dim strHTML 'holds HTML code to write to page
Dim q 'holds the " character
q = chr(34)

Dim rs 'create recordset to show categories from database
Set rs = Server.CreateObject ("ADODB.Recordset")
sql = "Select * FROM categories ORDER BY catdescription ASC;"
rs.Open sql, connobj, adOpenForwardOnly,adLockReadOnly,adCmdText

---------------end --------------------------


the line q = chr(34) appears as a comment, as does Set rs, and sql, etc.

The code functions properly. I'm just getting unexpected syntax highlighting. q = chr(34) is an assignment, not a literal string

Thanks

Craig
Post Reply