clemos / try-haxe

A small webapp that allows to test Haxe online
https://try.haxe.org
MIT License
126 stars 41 forks source link

Patch 4 #64

Closed markknol closed 9 years ago

markknol commented 9 years ago

This patch will make haxe-users be able to embed the try-haxe code on their website/blog. It will look like this: try-haxe-embed Features: view,run source and an option to edit it using a link back to try-haxe.

I will provide a nice wiki-page for users to know how to embed it when it's up and running.

At the moment it works with /app/embed/UID. In ideal cases it will be /embed/UID, as discussed. I hope you can find time to move the /app/ to the root folder. I tried to make that work, without success.

clemos commented 9 years ago

It's online ! I've also integrated it to the main page ;) Great work, thanks !

profelis commented 9 years ago

@markknol why embed use another code styling (color)?

anissen commented 9 years ago

Really awesome - great work! :+1:

Next task: Replace the "A taste of Haxe"-section on haxe.org with an embedded try.haxe instance ;)

markknol commented 9 years ago

@clemos nice! Great stuff! @profelis good point, ill look into that soon, it uses different systax highlighter. @anissen well, start contributing today :)

clemos commented 9 years ago

I agree with @profelis, it would be nice for the widget template to have the same look and feel than try-haxe, which means using bootstrap for the UI, and CodeMirror for the code. Also, now that I see it in an actual iframe, I think it would be nice to have a less intrusive UI (no black header, lighter or smaller logo, maybe use bootstrap tabs instead of buttons, ...). @markknol let me know if I can help.