fastn-stack/fastn-old

editor: there should be guide at 80 character

amitu opened this issue · 2 comments

amitu commented

We want to manually wrap the lines at 80 chars or so per line. For that we need to know when we have reached that limit. Sublime text and other editors show a guide, our editor should also have such a guide.

image

Show text beyond 80 chars in red

We should also show everything beyond the limit in a different color to hint people to rewrap.

Why we want manual / hard wrapping, instead of auto wrapping?

If do not want to support auto wrapping, as when we do the lines become long, and long lines look ugly in diff. Consider this diff in Wikipedia:

image

Only a couple of words have changed, but the diff includes the whole paragraph. This is too much visual noise. This happens because Wikipedia support auto wrapping so people do not put hard line breaks when writing there.

amitu commented

@gsalunke is this implemented?

@amitu yes this is implemented!
80chars-guide-on-fpm-editor