protoc / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

CRLF in Notepad++ when editing a windows format file. #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using Notepad++ in Windows, when I do "Expend Abbreviation", it always use UNIX 
format newline (LF, \n). Even editing a Windows format file, it still use \n, 
never use \r\n.

Original issue reported on code.google.com by whitetre...@gmail.com on 4 Jun 2011 at 6:36

GoogleCodeExporter commented 9 years ago
Open zencoding.js file and change 'newline' variable value to \r\n

Original comment by serge....@gmail.com on 4 Jun 2011 at 11:18

GoogleCodeExporter commented 9 years ago
If do this, when editing a UNIX format file, it will use a Windows format 
newline...

Original comment by whitetre...@gmail.com on 4 Jun 2011 at 11:22

GoogleCodeExporter commented 9 years ago
There’s no way to get current document’s newline characters in JS version, 
so you should try to switch to Python version 
http://sourceforge.net/projects/npppythonscript/files/ or choose another editor

Original comment by serge....@gmail.com on 4 Jun 2011 at 11:42