Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
As Lundin points out, there are quite a few whitespace-sensitive programming languages out there, where automatic wrapping would change the apparent meaning of the code, such as Phython or JavaScri...
Answer
#1: Initial revision
As Lundin points out, there are quite a few whitespace-sensitive programming languages out there, where automatic wrapping would change the apparent meaning of the code, such as [Phython](https://docs.python.org/3/reference/lexical_analysis.html#line-structure) or [JavaScript](https://www.ecma-international.org/ecma-262/5.1/#sec-7.3). In particular, wrapped lines must be properly indented in many contexts, which goes way beyond the capabilities of CSS. I therefore vote for `overflow-x: auto`, i.e. displaying a horizontal scroll bar if lines are to long to fit the layout. That way, we get to see the question the author meant to ask, OP is nudged to manually format the question in readable way, but can still ask the questions that need long lines (and yes, if you want to talk about the `HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor` or extend a `ClassFilterAwareUnionIntroductionAwareMethodMatcher` you probably need a long line ;-) (yes, these are actual class name from popular open source projects :D)