Electron editor package / plugin


#1

Hi,

Part of the functionality that the app that I intend to host within Electron needs to provide is basic code editing facilities (syntax coloring, formatting, perhaps intellisense),

Can anyone point me in the direction of such a plugin or documentation discussing how to support editing within Electron?

Aidan


#2

…you mean apart from running Atom on it?
You could refer to how Atom is being implemented (obviously it is built entirely from scratch, so it’s not a plugin to drop into your existing code base. But maybe its code could be a bunch of helpful examples?


#3

yep, feel Atom would be too much both in terms of functionality and code to include, so was hoping for something simpler.
But I will have a look over at Atom.


#4

Well, you can try https://github.com/fireball-x/editor-framework, it is based on Electron, and in your case, you just need to add a code-editor as a panel in the editor-framework. The framework also include several examples to help you start up: https://github.com/fireball-packages/package-examples. Hope this can help you :slight_smile:


#5

Sorry for the late reply.
Correct me if I am wrong, but I don’t think your framework suite provides an actual editor?

I was thinking that I would try and have a single codebase which could run either via a website/browser or a desktop app (electron).

But having seen what your editor-framework provides I am now reconsidering and I may restrict my offerings to be purely electron based to provide a richer inter-panel workflow for the user.

Excellent work.

Regards

Aidan