We are currently planning to migrate to a different platform for the forum. We will announce this fact both here and on Twitter, once we have settled on a solution.

Wrapping lines in the editor?

In the editor I have a problem with long lines running off the page (to the right). Is there a way to set page margins and cause long lines to wrap automatically?


  • edited September 2

    Does this happen only when the window is narrow? If so, then one solution would be to add this to your custom css (menu > Custom css):

    #editor {
      max-width: 850px;

    It sets a maximum width for the content column. And when the window is narrow, the content wraps.
    Hope this helps.

    Edit: that doesn't work very well, as the tabs are included in that dimension, and the scrollbar comes inside the content.

    Maybe try this instead:

    .CodeMirror .CodeMirror-sizer {max-width:850px;}

Sign In or Register to comment.