« Return to Thread: RHTML comments

Re: RHTML comments

by Dudley Flanders :: Rate this Message:

Reply to Author | View in Thread


On Aug 2, 2007, at 2:58 PM, Tor Norbye wrote:
> I'm thinking of using <%# and %> around each line. There are some  
> other alternatives, like inserting <% if false %>, <% end %> around  
> the block of code, but this has some disadvantages - you don't get  
> syntax highlighting feedback that the code is commented out (since  
> it's "execution"-based commenting) - and it works differently than  
> the "per-line-commenting" that is used for this in the IDE.

<%# %> is the standard rhtml comment. Unless there's a really good  
reason not to, I'd use that.

:dudley

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


 « Return to Thread: RHTML comments