> Can't DMD already compile D code embedded in HTML: > http://www.digitalmars.com/d/2.0/html.html ?
I tried the sample at the link, but got error. I also tried it without the HTML code inside. Am I missing something? $ dmd hello.html Error: module hello html source files is deprecated hello.html hello.html: -------------- <html> <body> <code> import std.stdio; int main() { writefln("Hello world"); return 0; } </code> </body> </html> -------------- -or- -------------- import std.stdio; int main() { writefln("Hello world"); return 0; } --------------