Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What characters will a TextArea wrap at, other than spaces?

I'm working on the latest version of my plugin, Textarea Line Counter (http://mostthingsweb.com/?p=84). To make it even more accurate, I want to identify regions of text that wrap because they are too large to fit on the line (like a sequence of repeated characters).

I'm assuming that browsers only wrap text at spaces. Are there any other characters that lines can be wrapped at? Thank you,

like image 550
Chris Laplante Avatar asked Feb 16 '11 01:02

Chris Laplante


People also ask

How do you wrap text without space?

You can wrap a long string, which does not have any whitespace character by using the CSS word-wrap property, or overflow-wrap, if you use CSS3. In this snippet, you'll find some examples for block elements, as well as for the inline ones.

What is the use of wrap attribute of textarea tag?

The HTML textarea wrap Attribute is used to specify that in which manner the text is to be wrapped in a text area when a form is submitted. Attribute Values: soft: It specifies that the Text present in the Textarea would not be wrapped after submitting the form. This is the default value.

How do you wrap text in P tag?

Complete HTML/CSS Course 2022 HTML <pre> tag defines preformatted text. It is used to display code blocks since it preserves spaces and line breaks. If the line is large, then the <pre> tag won't wrap it by default. To wrap it, we need to use CSS.

What is meant by text wrapping?

Alternatively referred to as text flow, text wrap is a feature in text editors and word processors. It allows the user's text to be continued to the next line when the side of the page is reached.


1 Answers

Looks like it depends on the browser, my Opera wraps also on e.g. + % ? $ / ( [ { } \ ° ! ¿
Safari/Chrome on ¿ ? too

(guess there are lots more)

like image 178
Dr.Molle Avatar answered Nov 04 '22 16:11

Dr.Molle