Today, a friend consulted the Helper's house editor. CSS basically does not work on the BR about CSS to control line breaks. If it is or something like that, it can be controlled. In the browser, to cancel the function, it seems that only
In js, the alert pop-up window text line feed is a small problem. I am very depressed, so I collected it and shared it with you.
1. the pop-up window in the js File:
The Code is as follows:
It's a simple thing to convert between line breaks in ' \ n ', ' \ r \ n ', ' \ R ' 3.
usage
Copy the Code code as follows:usage:eol_convert.py [-h] [-r] [-m {u,p,w,m,d}] [-K] [-f]
filename [filename ...]
Convert Line Ending
Positional
A discussion on the problem of line wrapping in PHP
1.echo "\ n"; just escaped, equivalent to a space, but not wrapped, but wrapped in the source file. (User's explanation: \ n is the ASCII code, the browser parses the HTML code, not the ASCII
Look at the manual found Php_eol this variable, looked up the following information, the original is equivalent to a newline character. Can be replaced with php_eol in PHP to improve code-level portability
In the UNIX series with \ nIn Windows
The 1th type of notation:
Copy CodeThe code is as follows:
Str_replace ("n", "', $str);
?>
The 2nd type of notation:Copy the Code code as follows:
Str_replace ("RN", ", $str);?>
The 3rd type of notation:Copy the Code code as follows:
In PHP, the default code-wrapping has \\n Another is the carriage return line of/r/n and our ASCII editor Chr (13) is the carriage return and the space Oh, the following is a brief introduction of the different systems between the use of line breaks
For example, there are such strings in the file:
A.txt
Rei9aiwe bohth4Zu Go3eimum iChieSh5iveeSh2J eiziV0bo lu2Efooz feey5Ohr
To convert into the following situation:
B.txt
Rei9aiwebohth4ZuGo3eimumiChieSh5iveeSh2JeiziV0bolu2Efoozfeey5Ohr
How to do?
A copy of the existing data for:
已建成的电信管道、电信杆路、通信铁塔等电信设施的电信业务经营者应当将空余资源以( )等方式向有需求的其他电信业务经营者开放。A.出租 2借款B.出售C.资源互换D.抵押E.质押
The result I need to get from the inside is:
1、A.出租 2借款2、B.出售3、C.资源互换4、D.抵押5、E.质押
The difficulty I encountered was:“5,
Look at the manual found php_eol this variable, checked the information, the original is equivalent to a newline character
In the UNIX series with \ nIn Windows series with \ r \ nOn Mac with \ rPHP can be replaced with Php_eol to improve
$fileName="R:/info.txt";$str = date("Y-m-d H:i:s",Time()) .' '.$strArr ."/r/n";fwrite($file, $str);
As I write, the result is that the newline character is the entity, which is/r/n, what's going on?
Reply content:
$fileName="R:/info.txt";$str =
Do a query phone system, sales can choose time, inventory when the current inventory is not required time to choose. Two features to do on one page. Because JavaScript is not involved, ingenious a JavaScript. function reached, but the problem came
1. if the email written by Thunderbird is in plain text format (set here: Edit-> account settings-> Composition & addressing, you shoshould uncheck compose in HTML format for all accounts ), line wrap will be automatically performed in 72 columns.
Android spinner automatically pops up the list and sets the title. ttextview does not wrap the automatic screenshot method. Search for Android spinner click on stackoverflow to obtain the available result. javasmclick (); // you can set the title.
In vs2005, you want the label to implement the line feed function:
Directly modifyCode, Label. Text = "www \ r \ nyyyyyy", the label is displayed as follows:
WWW
Yyyyyy
Do not enter characters such as "\ r \ n" in the designer. It is displayed
The files saved under the window are sometimes transmitted to Ubuntu in a customary way. When you use vi to view and edit such files, ^ M will always appear at the end of the line, as shown in:
VcD4KPHA + primary + CjxwPsTHw7TI57rOv + primary +
The statement for [Tab] In the JS string is/x09You can do this test: Alert ("/x41"); // you can see what you get ?? Is the letter A (41 is the hexadecimal ASCII code value)I like to use separators such as/x0f. The [Tab] key may still be input, but/x0
When we copy and paste the webpage text directly to the word, we will find that the Section mark in the word section is a downward arrow rather than the section mark in the word section, the carriage return!
In this way, it looks awkward and
Recently, I have been working on the XML data detection tool. Today, it is coming to an end. When I make the error report output, I feel that the output is easier to view in notepad, so it is implemented.
Later I found that when every error record
---- Start
Many people cannot figure out what is carriage return and line feed. The following briefly introduces the origins and differences of these two concepts.
Before the advent of a computer, there was a kind of thing called a telex typewriter
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.