PHP Comment


<?php
/*
## This is a multi-line comment.
## Some more comment
## Last comment.
*/
?>

PSP Comment
<%
## This is a multi-line comment.
## Some more comment
## Last comment.
%>

Just like _PHP_ the comments must be within the <% ... %> tags.
Also, the reason you don't have multi-line comments in PSP is because
Python does not support it.

However, if you use an IDE such as PythonWin or IDLE you can use the key
combination ALT-3 to comment blocks of code that you have highlighted.
Further, you can use ALT-4 to uncomment those same blocks.

Further, as I understand it... the use of three dashes in a HTML style comment is used to hide Java Script from older browsers.



At 12:34 PM 8/29/2003 -0500, [EMAIL PROTECTED] wrote:

I think it would be useful to have a tag for commenting blocks of PSP/HTML.

Just now I did this instead to quickly comment something :

<!--psp:include path='test.html'-->

However, it is most often more useful to comment *sp code so that it does
not end up going to the browser at all. The above goes as an HTML comment.
This would result in possibly sensitive code being sent to the client.

I guess I could use a Python script tag with Python comments, but since
Python does not allow multiple line comments I would rather not.

If I am missing something, please let me know. Perhaps one of these...

  <!--- <psp:include path='test.html'> --->
  ( 3 dashes instead of two represents server side comment )
  ( coldfusion does this )

  <psp:comment><psp:include path='test.html'></psp:comment>
  ( probably the most desirable, but I personally like the above )

  <%# <psp:include path='test.html'> %>
  ( this probably works now but not for multiple lines )
  ( this syntax would be ambiguous with python code )

  <%@ comment <psp:include path='test.html'> %>
  <[EMAIL PROTECTED] <psp:include path='test.html'> %>
  ( bleh )

Anyway, did I miss something? What's the official word on PSP comments?

-Kai




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Andrew S. Garbutt Programmer I / Network Admin Center for Comparative Medicine University of California, Davis Phone: 530-754-5929 Fax: 530-752-7914 http://ccm.ucdavis.edu



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to