www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D embeddable on-line compiler

reply "Ramon" <midiway midi.rs> writes:
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)
Nov 07 2014
parent "Mike" <none none.com> writes:
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
Nov 08 2014