cburnett
01-04-2011, 06:33 PM
Hello
can an asp comment be closed with a ' ?
ex
Modified example... (original doesn't have closing ' and may be causing color coding error in DW cs4) .
<!--#include file="store/pc/include-metatags.asp"-->
<%
'default to order tab or not'
Dim tab1, tab5, switchtabs
switchtabs = Trim(request.querystring("o"))
if isnumeric(switchtabs) then
tab1="style='display:none'"
tab5="style='display:block'"
else
tab1="style='display:block'"
tab5="style='display:none'"
end if
%>
I ask because recently (last two months) DW CS4 has been rending code coloring off... when I removed this comment or modified it (it is the first thing on page) the color coding is accurate again.
I don't understand ASP and want a best practice and would prefer to keep the comment in line if possible.
thanks
casey
can an asp comment be closed with a ' ?
ex
Modified example... (original doesn't have closing ' and may be causing color coding error in DW cs4) .
<!--#include file="store/pc/include-metatags.asp"-->
<%
'default to order tab or not'
Dim tab1, tab5, switchtabs
switchtabs = Trim(request.querystring("o"))
if isnumeric(switchtabs) then
tab1="style='display:none'"
tab5="style='display:block'"
else
tab1="style='display:block'"
tab5="style='display:none'"
end if
%>
I ask because recently (last two months) DW CS4 has been rending code coloring off... when I removed this comment or modified it (it is the first thing on page) the color coding is accurate again.
I don't understand ASP and want a best practice and would prefer to keep the comment in line if possible.
thanks
casey