1

Is there a way to remove windows line endings on a basic windows 7 install. I'm working on a windows 7 computer with notepad and word 2010 at work. I'm trying to demo markdown without installing additional text editor, and keeping it installed locally.

I've tried Word with replace on \r\n, special characters and other ways and it can't locate. Notepad same issue.

Or is there a markdown converter that an online markdown converter that will handle windows line endings?

Marc K
  • 113

1 Answers1

1

I don't see anything online about how to do it in word, and it can't be done natively by windows 7(though wordpad, unlike notepad, can open-view files with *nix line endings, it can't save them). But there are ea ton of 3rd party programs that do it. I use cygwin and its dos2unix and unix2dos commands.. others use gvim if they're brave(:set fileformat=unix or :set fileformat=dos), or any number of text editors..

ADDED- It looks like the batch file gurus(and a few gods) of dostips forum have something Which tells me that powershell gurus might too
http://www.dostips.com/forum/viewtopic.php?f=3&t=3897&mobile=on

barlop
  • 25,198