Giter Club home page Giter Club logo

Comments (5)

desplesda avatar desplesda commented on July 19, 2024

Comment by desplesda
Sunday Feb 28, 2016 at 03:41 GMT


Apologies if you’ve already looked, but have you checked out the documentation for ACE, the code editor that Yarn is using?

https://github.com/ajaxorg/ace/

On 28 Feb 2016, at 2:32 PM, tekknobabblr [email protected] wrote:

I'm trying to implement word wrap in the editor window. Been researching for hours now and no luck lol. It seems like it should already be working, based on what I've seen, since Yarn uses "TextArea".

Here's what we're seeing now:

https://cloud.githubusercontent.com/assets/11084079/13377227/f508d8ce-dd9f-11e5-853f-528ba0e81461.jpg
And a mock-up of what I'm thinking (how word wrap works in Notepad++, for example):

https://cloud.githubusercontent.com/assets/11084079/13377262/5d900498-dda1-11e5-8399-e753ec239ed8.jpg
Anyone have any ideas?


Reply to this email directly or view it on GitHub InfiniteAmmoInc/Yarn#24.

from yarnclassic.

desplesda avatar desplesda commented on July 19, 2024

Comment by tekknobabblr
Sunday Feb 28, 2016 at 04:27 GMT


Ooh, no I have not! Thanks!

I got it! I added editor.getSession().setUseWrapMode(true); to knockout.ace on line 26, and that did exactly what I was looking for!

from yarnclassic.

desplesda avatar desplesda commented on July 19, 2024

Comment by desplesda
Sunday Feb 28, 2016 at 13:17 GMT


Cool! You should open a pull request, so that @InfiniteAmmoInc can merge it into the main app!

from yarnclassic.

desplesda avatar desplesda commented on July 19, 2024

Comment by tekknobabblr
Sunday Feb 28, 2016 at 19:38 GMT


Still a noob at GitHub, but I think I did it right lol.

Not sure if this is something that would go in the main branch yet or not, though. I mean, I wanted word wrap, but is that something everyone would want? Seems like something that will need a checkbox implemented to turn it on or off.

from yarnclassic.

desplesda avatar desplesda commented on July 19, 2024

Comment by charblar
Tuesday Jun 12, 2018 at 14:38 GMT


Resolved in PR InfiniteAmmoInc/Yarn#25, closing.

from yarnclassic.

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.