imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Code editor

Open luckyycode opened this issue 8 years ago • 1 comments

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?

luckyycode avatar Nov 08 '16 16:11 luckyycode

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).

Flix01 avatar Nov 09 '16 11:11 Flix01