Giter Site home page Giter Site logo

Comments (7)

warpech avatar warpech commented on July 18, 2024

You mean code completition? Is there some simple switch in Ace that we can use which learns from the vocabulary in the current document? I am afraid we will not be able to do anything else, since juicy-ace-editor is just a thin wrapper for Ace.

from juicy-ace-editor.

rofrol avatar rofrol commented on July 18, 2024

I've described my use case here therustmonk/elm-ace#5 (comment)

from juicy-ace-editor.

warpech avatar warpech commented on July 18, 2024

Thanks. Just a sincere question, what are the benefits of using juicy-ace-editor in Elm rather than directly using Ace in Elm?

The main purpose of custom elements is to encapsulate complex functionality with a simple DOM API, so I guess that's the reason, but maybe there's something more. Are custom elements a big thing in the Elm world?

from juicy-ace-editor.

rofrol avatar rofrol commented on July 18, 2024

To have autocomplete working. Currently this should work https://github.com/lostinbrittany/ace-widget

Look at LostInBrittany/ace-widget#16

from juicy-ace-editor.

warpech avatar warpech commented on July 18, 2024

To have autocomplete working. Currently this should work lostinbrittany/ace-widget

This does not answer my question, but now I have another one... Why don't you use https://github.com/lostinbrittany/ace-widget?

Again, I am asking sincerely, because juicy-ace-editor was created 3 years ago when there was no other custom element wrapper around Ace editor. It is still actively maintain, but maybe we should give space to ace-widget because it also seems nice and has more features.

from juicy-ace-editor.

rofrol avatar rofrol commented on July 18, 2024

What are the benefits of using juicy-ace-editor in Elm rather than directly using Ace in Elm

This package DenisKolodin/elm-ace uses ace directly, but to add autocomplete you have to know how the Native works https://github.com/DenisKolodin/elm-ace/blob/master/src/Native/Ace.js

Or maybe you have some other way in your mind to use ace directly.

Why don't you use https://github.com/lostinbrittany/ace-widget?

At that time I didn't know how to enable autocomplete in any of these packages.

from juicy-ace-editor.

SidneyNemzer avatar SidneyNemzer commented on July 18, 2024

Just a sincere question, what are the benefits of using juicy-ace-editor in Elm rather than directly using Ace in Elm?

In case you wanted another perspective on this, I'm also looking to use Ace in a custom element. This package is the first result for "ace editor custom element".

Elm code can't directly interact with imperative APIs, so custom elements work really well with Elm, especially for integrating exiting libraries like Ace.

juicy-ace-editor was created 3 years ago when there was no other custom element wrapper around Ace editor. It is still actively maintain, but maybe we should give space to ace-widget because it also seems nice and has more features.

Good to know! In that case, I'll try ace-widget. Maybe you should add a note to the README of this package?

from juicy-ace-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.