Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nea/MarkdownViewerPlusPlus
A Notepad++ Plugin to view a Markdown file rendered on-the-fly
https://github.com/nea/MarkdownViewerPlusPlus
html markdown notepad-plugin notepadplusplus pdf
Last synced: 3 months ago
JSON representation
A Notepad++ Plugin to view a Markdown file rendered on-the-fly
- Host: GitHub
- URL: https://github.com/nea/MarkdownViewerPlusPlus
- Owner: nea
- License: mit
- Created: 2017-01-22T11:30:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T07:54:18.000Z (over 5 years ago)
- Last Synced: 2024-05-29T06:13:24.862Z (5 months ago)
- Topics: html, markdown, notepad-plugin, notepadplusplus, pdf
- Language: C#
- Size: 1.55 MB
- Stars: 1,145
- Watchers: 49
- Forks: 142
- Open Issues: 93
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - nea/MarkdownViewerPlusPlus - A Notepad++ Plugin to view a Markdown file rendered on-the-fly (C# #)
README
# MarkdownViewerPlusPlus [![Build status](https://ci.appveyor.com/api/projects/status/jkuuth039vioms74?svg=true)](https://ci.appveyor.com/project/nea/markdownviewerplusplus) [![GitHub license](https://img.shields.io/github/license/nea/MarkdownViewerPlusPlus.svg)](https://github.com/nea/MarkdownViewerPlusPlus/blob/master/LICENSE.md) [![GitHub (pre-)release](https://img.shields.io/badge/release-0.8.2-yellow.svg)](https://github.com/nea/MarkdownViewerPlusPlus/releases/tag/0.8.2) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/insanitydesign)
A Notepad++ Plugin to view a Markdown file rendered on-the-fly## Features
* Dockable panel (toggle) with a rendered HTML of the currently selected file/tab
* CommonMark compliant ([0.28][4])
* Synchronized scrolling
* Custom CSS integration
* HTML and PDF Export
* Notepad++ Unicode Plugin## Latest Versions
* 0.8.2
* Merged a lot of bugfixes and improvements, thanks to [monoblaine](https://github.com/monoblaine)
* Updated [Markdig][3] to v0.15.0, [PDFSharp][5] to v1.50.4845-RC2a and [HTMLRenderer][6] accordingly
* Added a shortcut to _Options_ and _About_ to MarkdownViewerPanel
* 0.8.1
* Fixed a bug cutting off text after 10000 characters (#60)
* Changed parsing of custom CSS to recognize _@import_ statements and have them lead (#35)
* 0.8.0
* Changed CommonMark.net converter to [Markdig][3]
* Updated [PDFSharp][5] and [HTMLRenderer][6] accordingly
Download the latest [release here][9]. For a full version history go [here][10].## Installation
Download a [release version][9] and copy the included **MarkdownViewerPlusPlus.dll** to the *plugins* sub-folder at your Notepad++ installation directory. The plugin adds a small Markdown icon ![Markdown icon](https://raw.githubusercontent.com/nea/MarkdownViewerPlusPlus/master/MarkdownViewerPlusPlus/Resources/markdown-16x16-solid.png) to the toolbar to toggle the viewer as dockable panel.### Plugin Manager
If you have the [Plugin Manager][13] installed you can search for MarkdownViewer++ and install it via that plugin.### Compatibility
This plugin requires at least
* Notepad++ 32-bit/64-bit
* Windows
* .NET Framework 4.0 or aboveIt has been tested under the following conditions
* Notepad++ 7.5.6 32-bit and 64-bit
* Windows 10 Professional (64-bit)## Usage
To open the MarkdownViewer++ you can
* click the toolbar icon ![Markdown icon](https://raw.githubusercontent.com/nea/MarkdownViewerPlusPlus/master/MarkdownViewerPlusPlus/Resources/markdown-16x16-solid.png),
* use the shortcut _Ctrl+Shift+M_
* or open it via the **Plugins** sub-menuTo synchronize the scrolling between the Notepad++ editor view and the rendered markdown, you can enable the option via the **Plugins** sub-menu. The made selection will be stored and loaded in future sessions.
![MarkdownViewer++](https://raw.githubusercontent.com/nea/MarkdownViewerPlusPlus/master/MarkdownViewerPlusPlus/Resources/MarkdownViewerPlusPlus.png)
### Options
The MarkdownViewer++ offers several options to customize your plugin experience. You can open the options dialog via the **Plugins** sub-menu.![MarkdownViewer++ Options](https://raw.githubusercontent.com/nea/MarkdownViewerPlusPlus/master/MarkdownViewerPlusPlus/Resources/MarkdownViewerPlusPlus-Options.png)
#### General
On the **General** tab you can configure the file extensions the MarkdownViewer++ renderer should actually display. If the box is *empty* all files will be rendered. If you want to limit the rendering to certain file extensions list them in the textbox as comma-separated list without leading dot.For example, if you only want to render *txt*, *log* and *md* files just type in "txt,log,md".
Please note that only file extensions are compared and no certain mime types or anything. If a text document is not named *XYZ.txt* it will not be rendered.
#### HTML
On the **HTML** tab you can fill in *Custom CSS*, which is used when rendering the MarkdownViewer++ preview as well as the exported HTML. Therefore, you are able to e.g. change bullet-point-list icons or sizes of headlines. The custom CSS textbox is limited to 32767 characters.
On the **PDF** tab you can set the *orientation* and *page size* of the exported PDF. The content is provided by the [PDFSharp][5] enumerations.Additionally, the margins for *top*, *right*, *bottom* and *left* can be set for the exported PDF file.
### Highlighting
MarkdownViewer++ adds no markdown highlighting to Notepad++ itself. But you might find the [user-defined syntax highlighting by Edditoria][12] helpful.## License and Credits
The MarkdownViewerPlusPlus is released under the MIT license.This Notepad++ plugin integrates the sources of multiple other libraries, because of issues with the library merging process. Credits and thanks to all the developers working on these great projects:
* The plugin is based on the [Notepad++ PluginPack.net][2] by kbilsted provided under the Apache-2.0 license.
* The renderer uses
* [Markdig][3] by lunet-io provided under the BSD-2-Clause license
* [HTMLRenderer.WinForms][6] by ArthurHub provided under the BSD-3-Clause license
* The PDF Exporter uses
* [PDFSharp][5] by empira Software GmbH provided under the MIT license
* [HTMLRenderer.PdfSharp][6] by ArthurHub provided under the BSD-3-Clause license
* The SVG renderer uses [SVG.NET][11] by vvvv provided under the Microsoft Public License
* The menu icons are by [FontAwesome][7] provided under the SIL OFL 1.1 license
* The Markdown icon is by [dcurtis][8] provided under the CC0-1.0 license## Disclaimer
This source and the whole package comes without warranty. It may or may not harm your computer or cell phone. Please use with care. Any damage cannot be related back to the author. The source has been tested on a virtual environment and scanned for viruses and has passed all tests.## Personal Note
*I don't know if this is very useful for a lot of people but I wanted something in private to quickly write and see some formatted Markdown documents. As I was not able to find something similar very quickly I created this project. I hope this proves useful to you... with all its Bugs and Issues ;) If you like it you can give me a shout at [INsanityDesign][1] or let me know via this repository.*[1]: http://www.insanitydesign.com/
[2]: https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
[3]: https://github.com/lunet-io/markdig
[4]: http://spec.commonmark.org/0.28/
[5]: http://www.pdfsharp.net/
[6]: https://htmlrenderer.codeplex.com/
[7]: http://fontawesome.io/
[8]: https://github.com/dcurtis/markdown-mark
[9]: https://github.com/nea/MarkdownViewerPlusPlus/releases
[10]: https://github.com/nea/MarkdownViewerPlusPlus/wiki/Version-History
[11]: https://github.com/vvvv/SVG
[12]: https://github.com/Edditoria/markdown-plus-plus
[13]: https://bruderste.in/npp/pm/