Jump to content

D Programming/Embedding D in HTML

From Wikibooks, open books for an open world

The dmd compiler has the capability to read an .html file as source. Every code between

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

... is treated as D code, and dmd will compile it.