News for hackers. Stuff that matters.
Re:Ace – an embeddable code editor by geokon on Saturday November 03, 2018 @07:05AM (#18369641)
What's the use-case for an editor embedded in a webpage? It doesn't seem to be able to live-edit the webpage code - so I guess I don't really get it..

It'd be nice is someone made a general text editor that was also embeddedable and could also live edit itself (or the program it's running in). The closest I've seen is Nightlight https://sekao.net/nightlight/

But it's not really "general purpose" like Emacs w/ Elisp and it's pretty Clojure specific

Re:Ace – an embeddable code editor by adaFrankly on Saturday November 03, 2018 @07:27AM (#18369709)
Long time reader here, I decided to create an account to reply to this.

We recently created a web interface for docker swarm as part of a university project, part of our requirements were that a compose file could be submitted via the web interface to create a new stack. We used ace for this and it worked quite nicely.

Re:Ace – an embeddable code editor by austincheney on Saturday November 03, 2018 @07:36AM (#18369735)
I maintain a code beautifier and parser. I use Ace to allow users to better read and understand their code as they use the features of my software. I also ensure that Ace is optional and can be turned off.

* https://prettydiff.com/

* parser - https://prettydiff.com/parse-framework/runtimes/browsertest....

By turning off Ace and turning it back on you can experience a huge change in user experience

Re:Ace – an embeddable code editor by rrdharan on Saturday November 03, 2018 @10:16AM (#18370238)
Dropbox Paper (https://paper.dropbox.com) uses a modified version of Ace. Paper is based on Hackpad (https://en.wikipedia.org/wiki/Hackpad) which used Ace:

https://github.com/dropbox/hackpad/tree/master/etherpad/src/...

Re:Ace – an embeddable code editor by tjhance on Saturday November 03, 2018 @01:16PM (#18371309)
Actually I think the 'ace' in Paper/Hackpad/Etherpad is a different thing called ace.
Re:Ace – an embeddable code editor by rrdharan on Friday November 16, 2018 @09:37PM (#18473588)
Hah, whoops - you’re right of course:

https://github.com/ether/pad/tree/master/infrastructure/ace

> ACE2 is EtherPad's editor, a content-editable-based rich text editor that supports IE6+, FF(2?/)3+, Safari(3?/)4+. It supports collaborative editing using operation transforms (easysync2), undo/redo, copy/paste.

> The name "ACE2" is because this is a rewrite of aiba's original content-editable AppJet Code Editor.

Re:Ace – an embeddable code editor by dbattaglia on Saturday November 03, 2018 @08:55AM (#18369966)
I've created a few systems that had web code editors on them. One was a CMS based on C# MVC Razor, the users were technical themselves so editing HTML and some light C# was better for them than a WYSIWYG editor. Another was a data ingest pipeline system that allowed customization of stages via Javascript. The scripts were stored in a database and edited via a web page (again, it was a technical audience and very small scripts so a web editor made sense).