Difference between \n and \r?

In terms of ascii code, it’s 3 — since they’re 10 and 13 respectively;-). But seriously, there are many: in Unix and all Unix-like systems, \n is the code for end-of-line, \r means nothing special as a consequence, in C and most languages that somehow copy it (even remotely), \n is the standard escape sequence for end of line (translated to/from … Read more

git-diff to ignore ^M

GitHub suggests that you should make sure to only use \n as a newline character in git-handled repos. There’s an option to auto-convert: Of course, this is said to convert crlf to lf, while you want to convert cr to lf. I hope this still works … And then convert your files: core.autocrlf is described on the … Read more

How to add a newline (line break) in XML file?

A newline (aka line break or end-of-line, EOL) is special character or character sequence that marks the end of a line of text. The exact codes used vary across operating systems: You can use 
 for line feed (LF) or 
 for carriage return (CR), and an XML parser will replace it with the respective character when handing off the parsed text to an application. … Read more

Print empty line?

You will always only get an indent error if there is actually an indent error. Double check that your final line is indented the same was as the other lines — either with spaces or with tabs. Most likely, some of the lines had spaces (or tabs) and the other line had tabs (or spaces). … Read more

How to use \n new line in VB msgbox() …?

for VB: vbCrLf or vbNewLine for VB.NET: Environment.NewLine or vbCrLf or Constants.vbCrLf Info on VB.NET new line: http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx The info for Environment.NewLine came from Cody Gray and J Vermeire

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)