Git Product home page Git Product logo

Comments (8)

BalazsJako avatar BalazsJako commented on May 22, 2024 1

It is not overly complicated, though it requires some effort to make it work properly. Since there were no requests for it, I did not try to implement it. If there is any demand for it, it might worth it. I will leave this open as a request and see how many are interested in it.

from imguicolortextedit.

CallumDev avatar CallumDev commented on May 22, 2024

I'd be interested in using it to edit localisation files for https://github.com/Librelancer/Librelancer
This requires UTF-8 though :D

from imguicolortextedit.

cesss avatar cesss commented on May 22, 2024

I asked for it because these days I wouldn't write a text editor if it doesn't support UTF8 from the beginning (sooner or later, somebody will open a file with international characters in your editor). I tend to believe that what I really want is Scintilla (yes, a big monster) but running on a OpenGL and/or Vulkan based GUI. Partial ports of Scintilla to OpenGL and ImGui exist, but nobody has done a complete port, AFAIK.

from imguicolortextedit.

BalazsJako avatar BalazsJako commented on May 22, 2024

The motivation for this widget is to write an easy to use, user and coder friendly, simple shader/config/script/simple text editing utility, instead of a generic one which tries to cover a very wide range of features. Scintilla is much more complex because of that approach.

I try to keep it small and simple as possible, without bloat, just like ImGui itself. Though, adding UTF-8 support might not compromise the overall simplicity too much, I guess.

from imguicolortextedit.

BalazsJako avatar BalazsJako commented on May 22, 2024

I have committed an experimental version of UTF-8 support to dev branch. Please test it. If it gets stable/complete enough I will merge it to master.

from imguicolortextedit.

BalazsJako avatar BalazsJako commented on May 22, 2024

Merged #84 to master.

from imguicolortextedit.

cesss avatar cesss commented on May 22, 2024

Thanks a lot!! I didn't have the time to look at this before!! I'm in the process of inserting your Win32+DX11 demo into the SDL2 demos, as I have absolutely no idea about Microsoft APIs. I'm a bit surprised about you including the DirectInput header in the demo... what is it used for? I hope I'm doing the surgery right for transplanting it into SDL2... let's see...

EDIT: It worked!! I transplanted it into the SDL2+Vulkan demo quite easily!!

Thanks a lot!! This editor is great!!

from imguicolortextedit.

BalazsJako avatar BalazsJako commented on May 22, 2024

Very welcome :) As you might already figured out, the demo is basically a modified ImGui DX11 example, all the includes are coming from that code. The editor itself does not depend on anything like that. It relies on ImGui and STL.

from imguicolortextedit.

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.