Long lines don't word wrap using CodeEditor extension
OpenPublic

Description

Using the new code editor is very difficult when long strings of code can't be rendered on one screen. There needs to be a word wrap capability.


Version: unspecified
Severity: enhancement

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz53911.
Technical13 created this task.Via LegacySep 8 2013, 2:59 PM
TheDJ added a comment.Via ConduitDec 31 2013, 11:23 AM

Quite easy to do with

session.setUseWrapMode(true);
session.setWrapLimitRange(120, 120);

It defaults to 80 columns it seems. There is also a hook to allow you to do this yourself:

Demo: https://en.wikipedia.org/w/index.php?title=User%3ATheDJ%2Fcommon.js&diff=588508535&oldid=584824999

I guess we can fight over weather or not this should be set by default.

Technical13 added a comment.Via ConduitMar 25 2014, 10:51 PM

It needs to be an option from the ui. I don't care if it is toggled by default or not.

Aklapper added a comment.Via ConduitMar 26 2014, 11:44 AM

Request for new functionality which wasn't there before => severity==enhancement

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.