Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code editor #9

Open
luckyycode opened this issue Nov 8, 2016 · 1 comment
Open

Code editor #9

luckyycode opened this issue Nov 8, 2016 · 1 comment

Comments

@luckyycode
Copy link

As I read status of current implementation is not good, but I did some improvements for "BadCodeEditor" (not another one) and I want to reimplement folding in this method but I don't really understand the structure of that, could you explain please?

@Flix01
Copy link
Owner

Flix01 commented Nov 9, 2016

I did some improvements for "BadCodeEditor" (not another one)

Are you going to share the improvements ?

I want to reimplement folding in this method but I don't really understand the structure of that, could you explain please?

Well, as far as I can remember (I stopped developing it long ago), it was not possible to keep code folding inside BadCodeEditor because BadCodeEditor uses stb_textedit.h (like ImGui::InputText(...)), whereas the main CodeEditor used a Line structure: the code was split into text lines and there was a method that was used to update some fields inside that "Line structures" with their folding info (if you compile main3.cpp you can see that data if you move the mouse to the left of each line).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants