Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Mikko Ohtamaa: Why source code editors cannot do beautiful soft wraps?

$
0
0

Again it surfaced that recommending 80 character line lengths, or any hard line lengths, might not be a good idea for the source code layout.

Without making any coherent line of thought:

  • People have different screen widths and you can drag to resize your window
  • My text processor was able to soft wrap sentences back in 1989. Why my source code editor cannot do the same and still retain readable code despite being 200 MB monster of Java code. Writing a logic to lay out readable code with soft word wrapping such not be such a hard task.

Ugly (hardcoded line length):

Screen Shot 2015-12-22 at 09.28.26

 

Ugly #2 (soft wrapping is not context sensitive):

Screen Shot 2015-12-22 at 09.30.04

 Subscribe to RSS feedFollow me on TwitterFollow me on FacebookFollow me Google+


Viewing all articles
Browse latest Browse all 22462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>