Line breaks in a code block break the formatting (tabulation)

What I’m trying to do

I want to add some C# code in my note. But when I insert a line that is longer than the maximum width of the code block a line break occurs, but for some reason it ignores the tabbing of the code, it goes outside the desired area

Things I have tried

I tried installing different extensions as well as styles, but it all broke the rest of the interface that I like. I’m wondering if there’s some good solution, like somehow adding a scroll for the code block or extending just the code block.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.