Keep tab when line goes further

How can i set CodeMirror to keep the tabs equal as the original line?

So the 2nd $("#chat1") would have the same tab amount as the line it is part of(the first $("#chat1"))

To answer it myself: CodeMirror: Indented wrapped line demo

Hi, do you happen to know the way cm6 does? Trying to do the same tab thing like yours based on cm6 :slightly_smiling_face:

Not really, have took a quick peek for you and my guess is that you need: lineIndent

How I solved my problem, check for a demo that has the desired function and then check the source code. :v:

Thanks!!! I’ll take a look at it, hope I’ll solve it soon. :smile: