Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I create JavaScript comments in derived files?

0
0 Posted

How can I create JavaScript comments in derived files?

0
0

I’m writing a Windows Script Component, which is an XML file with a CDATA section containing Javascript. I can get the XML as I want it by setting the language to html, but how can I get the tangling comments inside the CDATA section to be java-style comments rather than html ones? In @file trees you use the @delims directive to change comment delimiters. For example: @delims /* */ Javascript stuff @delims <-- --> HTML stuff Warning: Leo2 can not revert to previous delimiters automatically; you must change back to previous delimiters using another @delims directive. In @root trees you can work around this problem using the @silent directive.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123