[Klone-users] Don't Translate C/C++ comment

Mickael Auger mickael.auger at gmail.com
Tue Jan 5 08:22:30 EST 2010


Hi,

I wish to comment a block in my klx page with /* */ syntax.
However the parse of klx page translates the content of C/C++ comment
(function translate_script_to_c())

For example, if I write :
=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-==-=-=-=-=-=-==-=-=-=-=-=-=
<table>
<%
for(i=0; i<10; i++)
{
  %><tr><td>one cell</td></tr><%
  /*
  other version TODO
  <tr><td>cell<% io_printf(out,"%d",i); %></td></tr>
  */
}
%>
</table>
=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-==-=-=-=-=-=-==-=-=-=-=-=-=

this example doesn't compile because the strings "<%" and "%>" in comment
block are translated.

Could not translate the content in /* */ comment block, please ?


Bye and happy new year.
-- 
Mickaël AUGER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20100105/0283d5d9/attachment.html


More information about the klone-users mailing list