LinkedIn Office Working

Markdown in Notepad++ with Perl/Cygwin

Notepad++ is my primary text editor in Windows and I also have Perl installed in Cygwin.
To Markdown files under Notepad++ with NppExec plugin, I use following scripts:

A bash shell script to call

#c:\cygwin\bin\bash.exe -l "/cygdrive/c/cygwin/home/$USER/" "$(FULL_CURRENT_PATH)" $(CURRENT_DIRECTORY) $(NAME_PART)
current_path=<code>cygpath -u $1</code>
current_dir=<code>cygpath -u $2</code>
echo &quot;Markdowning file: &quot;$current_path
~/Markdown_1.0.1/ &quot;$current_path&quot; &gt; &quot;$out_file&quot;
echo &quot;Result file: &quot;$out_file

The NppExec script:

c:\cygwin\bin\bash.exe -l &quot;/cygdrive/c/cygwin/home/$(SYS.USERNAME)/; &quot;$(FULL_CURRENT_PATH)&quot; &quot;$(CURRENT_DIRECTORY)&quot; &quot;$(NAME_PART)&quot;

The HTML will be opened in Notepad++. I didn’t try to find a way to open it in browser directly yet.

Reference post: “Markdown in Notepad++