+ Start a Discussion
MG ConsultingMG Consulting 

Visualforce Server Side Comment Syntax

Hi,

Sorry for the RTFM type question but, believe it or not, I'm having a bit of trouble finding the answer...

What is the syntax for Visualforce server side comments?

Thanks,
Mike
TehNrdTehNrd
//for a single line.

/*for many
lines */
MG ConsultingMG Consulting
That looks strangely familiar :) Thanks!
MG ConsultingMG Consulting
Actually, I spoke too soon, I knew it seemed weird... I just tried using the java/apex code comment syntax mentioned above in Visualforce mark up to no avail. I don't want to use <!-- --> because then the comments are included in the response to the client. I was looking for something more along the lines of JSP comments, ie. <%-- comment --%>, which are not included in the response to the client.

Does Visualforce mark up currently have a commenting syntax?

Thanks,
Mike
TehNrdTehNrd
I tried using <!-- --> and it doesn't show my comments in the source of the page. Do you have developer mode enabled?
MG ConsultingMG Consulting
Check it out, this seems a little bazar to me, the html comment <!-- TEST --> renders to the client as <!--******-->. If Visualforce is going to star comments out it might as well strip them completely and cut down on bytes transferred to the client...
TehNrdTehNrd
Odd. In my page I am not seeing the comments at all, starred out or not.


Message Edited by TehNrd on 11-20-2008 01:21 PM
Jerad MeidingerJerad Meidinger
I used  <!-- TEST --> in my visualforce page. It behaved like comment.
damion medamion me