Plugin to preview Markdown files in Notepad++
The current version is 0.7.3 it can be found here
The plugin can be installed with the Notepad++ Plugin Admin. The name of the plugin is Markdown Panel.
Create the folder "NppMarkdownPanel" in your Notepad++ plugin folder (e.g. "C:\Program Files\Notepad++\plugins") and extract the appropriate zip (x86 or x64) to it.
It should look like this:
After the installation you will find a small purple markdown icon in your toolbar. Just click it to show the markdown preview. Click again to hide the preview. Thats all you need to do ;)
With dark mode enabled in Notepad++:
To open the settings for this plugin: Plugins -> MarkdownPanel -> Settings
This allows you to select a CSS file to use if you don't want the default style of the preview
This allows you to select a Dark mode CSS file. When the Notepad++ dark mode is enabled, this Css file is used. When no file is set, the default dark mode Css is used.
This allows you to set the zoom level of the preview
This allows you to select a file to save the rendered HTML to every time the preview is rendered. This is a way to automatically save the rendered content to use elsewhere. Leaving this empty disables the automatic saving.
Note: This is a global setting, so all previewed documents will save to the same file.
This allows you to define a list of file extensions, which are supported and displayed in Markdown Panel.
Other file type won't be displayed (there will be a warning).
The file extensions have to be separated by a comma ,
When this option is checked, Markdown Panel will open the preview window automatically for files with a supported extension. The preview will be closed for files with no supported extension.
Checking this box will enable the toolbar in the preview window. By default, this is unchecked.
Checking this box will show the status bar, which previews urls for links. By default, this is unchecked.
Clicking this button allows you to save the rendered preview as an HTML document.
Enabling this in the plugin's menu (Plugins -> MarkdownPanel) makes the preview panel stay in sync with the caret in the markdown document that is being edited.
This is similar to the Synchronize Vertical Scrolling option of Notepad++ for keeping two open editing panels scrolling together.
When this option is enabled, the plugin ensures that the first visible line in the editor is also visible in the preview. (This is an alternative to Synchronize viewer with caret position)
style.css
and style-dark.css
after comment /* Syntax Highlighting */
#71plugins/Config/NppMarkdownPanel.ini
.
The placeholders %inputfile%
and %outputfile%
have to be set in the commandline and will be resolved at runtime (with temporary file names).
An example C# commandline-project can be found under: misc\PPExtensions\MdpPrePostprocessorTemplate.sln
[Options]
PreProcessorExe=C:\temp\preprocessor.exe
PreProcessorArguments=%inputfile% %outputfile%
PostProcessorExe=C:\temp\preprocessor\postprocessor.exe
PostProcessorArguments=%inputfile% %outputfile%
Bugfix release
Name | Version | Authors | Link |
---|---|---|---|
Markdig | 0.30.4 | xoofx | https://github.com/lunet-io/markdig |
NotepadPlusPlusPluginPack.Net | 0.95 | kbilsted | https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net |
ColorCode (Portable) | 1.0.3 | Bashir Souid and Richard Slater | https://github.com/RichardSlater/ColorCodePortable |
Markdig.SyntaxHighlighting | 1.1.7 | Richard Slater | https://github.com/RichardSlater/Markdig.SyntaxHighlighting |
github-markdown-css | 3.0.1 | sindresorhus | https://github.com/sindresorhus/github-markdown-css |
Markdown icon | dcurtis | https://github.com/dcurtis/markdown-mark |
The plugin uses portions of nea's MarkdownViewerPlusPlus Plugin code - https://github.com/nea/MarkdownViewerPlusPlus
Thanks to the contributors:
vinsworldcom, rdipardo, andrzejQ, RicoP, UrsineRaven and eeucalyptus
This project is licensed under the MIT License - see the LICENSE.txt file for details