D embeddable on-line compiler

Mike via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 8 04:48:06 PST 2014


On Saturday, 8 November 2014 at 04:03:17 UTC, Ramon wrote:
> In the http://dlang.org/ start page, there is a textarea with D 
> code and options to compile/edit/rude the code.
>
> I want to have one of this in my website. So is there an online 
> service with an API to embbed a D syntax editor/compiler in my 
> site? (aka iframe)

It appears that http://dlang.org/js/run.js implements that. It 
has some nice documentation at the top of the file explaining how 
it works.  All the hard work of compiling and generating output 
seems to be done by http://dpaste.dzfl.pl/.  run.js appears to 
just be a front end for it.

Mike


More information about the Digitalmars-d mailing list