D Programming/Embedding D in HTML

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

This is the capability of the dmd compiler to read an .html file as source. Every code between

<code>void main(){}</code> 

is treated as D code and dmd will compile it.