From 892a4a55eeca4a8bc81bde4574662acc806883a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Apayd=C4=B1n?= Date: Wed, 4 Apr 2018 11:48:44 +0300 Subject: [PATCH 1/7] Make sure the menu strip and the markdown viewer do not overlap --- MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs | 3 +-- MarkdownViewerPlusPlus/Forms/MarkdownViewerRenderer.cs | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs b/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs index fa8a235..18dc5d3 100644 --- a/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs +++ b/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs @@ -54,9 +54,8 @@ protected void InitializeComponent() this.exportAsToolStrip, this.sendToolStrip, this.viewToolStripMenuItem}); - this.markdownViewerMenuStrip.Location = new System.Drawing.Point(0, 0); + this.markdownViewerMenuStrip.Dock = System.Windows.Forms.DockStyle.Top; this.markdownViewerMenuStrip.Name = "markdownViewerMenuStrip"; - this.markdownViewerMenuStrip.Size = new System.Drawing.Size(284, 24); this.markdownViewerMenuStrip.TabIndex = 1; this.markdownViewerMenuStrip.Text = "markdownViewerMenuStrip"; // diff --git a/MarkdownViewerPlusPlus/Forms/MarkdownViewerRenderer.cs b/MarkdownViewerPlusPlus/Forms/MarkdownViewerRenderer.cs index 7465167..7033764 100644 --- a/MarkdownViewerPlusPlus/Forms/MarkdownViewerRenderer.cs +++ b/MarkdownViewerPlusPlus/Forms/MarkdownViewerRenderer.cs @@ -43,6 +43,7 @@ protected override void Init() this.markdownViewerHtmlPanel.ImageLoad += OnImageLoad; //Add to view this.Controls.Add(this.markdownViewerHtmlPanel); + this.Controls.SetChildIndex(this.markdownViewerHtmlPanel, 0); } /// From 4e0a27de8cf250a62a6ed948e14ed7f8bfe1d49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Apayd=C4=B1n?= Date: Wed, 4 Apr 2018 11:57:22 +0300 Subject: [PATCH 2/7] Fix scroll ratio calculation error More info here: https://www.codeproject.com/Articles/1042516/Custom-Controls-in-Win-API-Scrolling (The image titled "Anatomy of the scrollbar") --- MarkdownViewerPlusPlus/MarkdownViewer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MarkdownViewerPlusPlus/MarkdownViewer.cs b/MarkdownViewerPlusPlus/MarkdownViewer.cs index 9b74ff6..30b863e 100644 --- a/MarkdownViewerPlusPlus/MarkdownViewer.cs +++ b/MarkdownViewerPlusPlus/MarkdownViewer.cs @@ -196,7 +196,7 @@ protected void UpdateScrollBar() try { ScrollInfo scrollInfo = this.Editor.GetScrollInfo(ScrollInfoMask.SIF_RANGE | ScrollInfoMask.SIF_TRACKPOS | ScrollInfoMask.SIF_PAGE, ScrollInfoBar.SB_VERT); - var scrollRatio = (double)scrollInfo.nTrackPos / (scrollInfo.nMax - scrollInfo.nPage); + var scrollRatio = (double)scrollInfo.nTrackPos / (scrollInfo.nMax - scrollInfo.nMin + 1 - scrollInfo.nPage); this.renderer.ScrollByRatioVertically(scrollRatio); } catch { } From 92095d09f10fbb52497b8e856df18a21b487adbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Apayd=C4=B1n?= Date: Wed, 4 Apr 2018 11:59:12 +0300 Subject: [PATCH 3/7] Honor the Scintilla option "Enable scrolling beyond last line" while calculating the scoll ratio --- MarkdownViewerPlusPlus/MarkdownViewer.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/MarkdownViewerPlusPlus/MarkdownViewer.cs b/MarkdownViewerPlusPlus/MarkdownViewer.cs index 30b863e..108a1e0 100644 --- a/MarkdownViewerPlusPlus/MarkdownViewer.cs +++ b/MarkdownViewerPlusPlus/MarkdownViewer.cs @@ -196,7 +196,22 @@ protected void UpdateScrollBar() try { ScrollInfo scrollInfo = this.Editor.GetScrollInfo(ScrollInfoMask.SIF_RANGE | ScrollInfoMask.SIF_TRACKPOS | ScrollInfoMask.SIF_PAGE, ScrollInfoBar.SB_VERT); - var scrollRatio = (double)scrollInfo.nTrackPos / (scrollInfo.nMax - scrollInfo.nMin + 1 - scrollInfo.nPage); + double totalRange = scrollInfo.nMax - scrollInfo.nMin + 1; + double scrollRatio; + + // Is "Enable scrolling beyond last line" checked? + if (Editor.GetEndAtLastLine() == false) + { + var actualThumbHeight = totalRange / (totalRange / scrollInfo.nPage - 1); + var actualTrackPos = scrollInfo.nTrackPos * actualThumbHeight / scrollInfo.nPage; + + scrollRatio = Math.Min(1, actualTrackPos / (totalRange - actualThumbHeight)); + } + else + { + scrollRatio = scrollInfo.nTrackPos / (totalRange - scrollInfo.nPage); + } + this.renderer.ScrollByRatioVertically(scrollRatio); } catch { } From bab2a7a17cc115623dea000651f409091946e702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Apayd=C4=B1n?= Date: Wed, 4 Apr 2018 12:14:22 +0300 Subject: [PATCH 4/7] Make sure focus on editor is not lost when the markdown viewer is opened --- MarkdownViewerPlusPlus/MarkdownViewer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MarkdownViewerPlusPlus/MarkdownViewer.cs b/MarkdownViewerPlusPlus/MarkdownViewer.cs index 108a1e0..69b4789 100644 --- a/MarkdownViewerPlusPlus/MarkdownViewer.cs +++ b/MarkdownViewerPlusPlus/MarkdownViewer.cs @@ -302,6 +302,7 @@ public void MarkdownViewerCommand() { UpdateEditorInformation(); Update(true, true); + Editor.SetFocus(true); } } From f4c2ea061ba2d90ab81f61dd0559503b2bd03799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Apayd=C4=B1n?= Date: Wed, 4 Apr 2018 12:25:26 +0300 Subject: [PATCH 5/7] Use AfterSelect event instead of NodeMouseClick Keyboard navigation does not work if we use NodeMouseClick --- MarkdownViewerPlusPlus/Forms/MarkdownViewerOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MarkdownViewerPlusPlus/Forms/MarkdownViewerOptions.cs b/MarkdownViewerPlusPlus/Forms/MarkdownViewerOptions.cs index acd2e34..b284e0e 100644 --- a/MarkdownViewerPlusPlus/Forms/MarkdownViewerOptions.cs +++ b/MarkdownViewerPlusPlus/Forms/MarkdownViewerOptions.cs @@ -66,7 +66,7 @@ public MarkdownViewerOptions(ref MarkdownViewerConfiguration configuration) this.optionPanels.Add(node.Tag.ToString(), optionsPanel); } // - this.treeOptions.NodeMouseClick += treeOptions_NodeMouseClick; + this.treeOptions.AfterSelect += treeOptions_AfterSelect; //Start with the general options panel this.splitOptions.Panel2.Controls.Add(this.optionPanels.First().Value); this.treeOptions.Select(); @@ -82,7 +82,7 @@ public MarkdownViewerOptions(ref MarkdownViewerConfiguration configuration) /// /// /// - protected void treeOptions_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs treeNodeEvent) + protected void treeOptions_AfterSelect(object sender, TreeViewEventArgs treeNodeEvent) { //Remove old (if any) if (this.splitOptions.Panel2.Controls.Count > 0) From 386dc059750ff719ec3d6765291f9464143efd66 Mon Sep 17 00:00:00 2001 From: Savas Ziplies Date: Sun, 29 Apr 2018 13:50:59 +0200 Subject: [PATCH 6/7] Changed: Updated dependencies and README Added: Options and About menu to panel --- .../Forms/AbstractRenderer.Designer.cs | 37 +++++++++++++++++- .../Forms/AbstractRenderer.cs | 20 ++++++++++ MarkdownViewerPlusPlus/MarkdownViewer.cs | 4 +- .../MarkdownViewerPlusPlus.csproj | 21 +++++----- .../Properties/AssemblyInfo.cs | 4 +- .../Properties/Resources.Designer.cs | 30 ++++++++++++++ .../Properties/Resources.resx | 9 +++++ .../Resources/fa-cog-16x16.png | Bin 0 -> 405 bytes .../Resources/fa-info-16x16.png | Bin 0 -> 258 bytes .../Resources/fa-paypal-16x16.png | Bin 0 -> 390 bytes MarkdownViewerPlusPlus/app.config | 2 +- MarkdownViewerPlusPlus/packages.config | 10 ++--- README.md | 12 +++--- 13 files changed, 123 insertions(+), 26 deletions(-) create mode 100644 MarkdownViewerPlusPlus/Resources/fa-cog-16x16.png create mode 100644 MarkdownViewerPlusPlus/Resources/fa-info-16x16.png create mode 100644 MarkdownViewerPlusPlus/Resources/fa-paypal-16x16.png diff --git a/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs b/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs index 18dc5d3..68aabf1 100644 --- a/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs +++ b/MarkdownViewerPlusPlus/Forms/AbstractRenderer.Designer.cs @@ -45,6 +45,9 @@ protected void InitializeComponent() this.sendToClipboard = new System.Windows.Forms.ToolStripMenuItem(); this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.markdownViewerMenuStrip.SuspendLayout(); this.SuspendLayout(); // @@ -53,9 +56,11 @@ protected void InitializeComponent() this.markdownViewerMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exportAsToolStrip, this.sendToolStrip, - this.viewToolStripMenuItem}); - this.markdownViewerMenuStrip.Dock = System.Windows.Forms.DockStyle.Top; + this.viewToolStripMenuItem, + this.aboutToolStripMenuItem}); + this.markdownViewerMenuStrip.Location = new System.Drawing.Point(0, 0); this.markdownViewerMenuStrip.Name = "markdownViewerMenuStrip"; + this.markdownViewerMenuStrip.Size = new System.Drawing.Size(284, 24); this.markdownViewerMenuStrip.TabIndex = 1; this.markdownViewerMenuStrip.Text = "markdownViewerMenuStrip"; // @@ -146,6 +151,31 @@ protected void InitializeComponent() this.refreshToolStripMenuItem.Text = "Refresh"; this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click); // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.optionsToolStripMenuItem, + this.aboutToolStripMenuItem1}); + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(24, 20); + this.aboutToolStripMenuItem.Text = "?"; + // + // optionsToolStripMenuItem + // + this.optionsToolStripMenuItem.Image = global::com.insanitydesign.MarkdownViewerPlusPlus.Properties.Resources.fa_cog_16x16; + this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; + this.optionsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.optionsToolStripMenuItem.Text = "Options"; + this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click); + // + // aboutToolStripMenuItem1 + // + this.aboutToolStripMenuItem1.Image = global::com.insanitydesign.MarkdownViewerPlusPlus.Properties.Resources.fa_info_16x16; + this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1"; + this.aboutToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); + this.aboutToolStripMenuItem1.Text = "About"; + this.aboutToolStripMenuItem1.Click += new System.EventHandler(this.aboutToolStripMenuItem1_Click); + // // AbstractRenderer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -175,5 +205,8 @@ protected void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem sendAsTextMail; private System.Windows.Forms.ToolStripMenuItem sendToPrinter; private System.Windows.Forms.ToolStripMenuItem sendToClipboard; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem1; } } diff --git a/MarkdownViewerPlusPlus/Forms/AbstractRenderer.cs b/MarkdownViewerPlusPlus/Forms/AbstractRenderer.cs index f68fcb9..16ecb8d 100644 --- a/MarkdownViewerPlusPlus/Forms/AbstractRenderer.cs +++ b/MarkdownViewerPlusPlus/Forms/AbstractRenderer.cs @@ -390,5 +390,25 @@ public bool IsOutlookInstalled() return false; } + + /// + /// + /// + /// + /// + private void optionsToolStripMenuItem_Click(object sender, EventArgs e) + { + this.markdownViewer.OptionsCommand(); + } + + /// + /// + /// + /// + /// + private void aboutToolStripMenuItem1_Click(object sender, EventArgs e) + { + this.markdownViewer.AboutCommand(); + } } } diff --git a/MarkdownViewerPlusPlus/MarkdownViewer.cs b/MarkdownViewerPlusPlus/MarkdownViewer.cs index 69b4789..c5d0b01 100644 --- a/MarkdownViewerPlusPlus/MarkdownViewer.cs +++ b/MarkdownViewerPlusPlus/MarkdownViewer.cs @@ -241,7 +241,7 @@ public void CommandMenuInit() /// /// /// - private void OptionsCommand() + public void OptionsCommand() { using (MarkdownViewerOptions options = new MarkdownViewerOptions(ref this.configuration)) { @@ -256,7 +256,7 @@ private void OptionsCommand() /// /// Show the AboutDialog as modal to the Notepad++ window /// - private void AboutCommand() + public void AboutCommand() { using (AboutDialog about = new AboutDialog()) { diff --git a/MarkdownViewerPlusPlus/MarkdownViewerPlusPlus.csproj b/MarkdownViewerPlusPlus/MarkdownViewerPlusPlus.csproj index 8fa1c11..f7d0eba 100644 --- a/MarkdownViewerPlusPlus/MarkdownViewerPlusPlus.csproj +++ b/MarkdownViewerPlusPlus/MarkdownViewerPlusPlus.csproj @@ -90,26 +90,26 @@ - ..\packages\HtmlRenderer.Core.1.5.1-beta2\lib\net40-client\HtmlRenderer.dll + ..\packages\HtmlRenderer.Core.1.5.1-beta3\lib\net40-client\HtmlRenderer.dll - ..\packages\HtmlRenderer.PdfSharp.1.5.1-beta2\lib\net40-client\HtmlRenderer.PdfSharp.dll + ..\packages\HtmlRenderer.PdfSharp.1.5.1-beta3\lib\net40-client\HtmlRenderer.PdfSharp.dll - ..\packages\HtmlRenderer.WinForms.1.5.1-beta2\lib\net40-client\HtmlRenderer.WinForms.dll + ..\packages\HtmlRenderer.WinForms.1.5.1-beta3\lib\net40-client\HtmlRenderer.WinForms.dll - - ..\packages\Markdig.0.14.9\lib\net40\Markdig.dll + + ..\packages\Markdig.0.15.0\lib\net40\Markdig.dll True - - ..\packages\PDFsharp.1.50.4790-beta5a\lib\net20\PdfSharp.dll + + ..\packages\PDFsharp.1.50.4845-RC2a\lib\net20\PdfSharp.dll - - ..\packages\PDFsharp.1.50.4790-beta5a\lib\net20\PdfSharp.Charting.dll + + ..\packages\PDFsharp.1.50.4845-RC2a\lib\net20\PdfSharp.Charting.dll @@ -258,6 +258,9 @@ + + + diff --git a/MarkdownViewerPlusPlus/Properties/AssemblyInfo.cs b/MarkdownViewerPlusPlus/Properties/AssemblyInfo.cs index c7ce8e0..96310a2 100644 --- a/MarkdownViewerPlusPlus/Properties/AssemblyInfo.cs +++ b/MarkdownViewerPlusPlus/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.1.*")] -[assembly: AssemblyFileVersion("0.8.1.0")] +[assembly: AssemblyVersion("0.8.2.*")] +[assembly: AssemblyFileVersion("0.8.2.0")] diff --git a/MarkdownViewerPlusPlus/Properties/Resources.Designer.cs b/MarkdownViewerPlusPlus/Properties/Resources.Designer.cs index 35b9d83..d7beb26 100644 --- a/MarkdownViewerPlusPlus/Properties/Resources.Designer.cs +++ b/MarkdownViewerPlusPlus/Properties/Resources.Designer.cs @@ -80,6 +80,16 @@ internal class Resources { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap fa_cog_16x16 { + get { + object obj = ResourceManager.GetObject("fa_cog_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -120,6 +130,26 @@ internal class Resources { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap fa_info_16x16 { + get { + object obj = ResourceManager.GetObject("fa_info_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap fa_paypal_16x16 { + get { + object obj = ResourceManager.GetObject("fa_paypal_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/MarkdownViewerPlusPlus/Properties/Resources.resx b/MarkdownViewerPlusPlus/Properties/Resources.resx index e9be500..5ad70c8 100644 --- a/MarkdownViewerPlusPlus/Properties/Resources.resx +++ b/MarkdownViewerPlusPlus/Properties/Resources.resx @@ -157,4 +157,13 @@ ..\Resources\Donate-PayPal-green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\fa-cog-16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\fa-info-16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\fa-paypal-16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/MarkdownViewerPlusPlus/Resources/fa-cog-16x16.png b/MarkdownViewerPlusPlus/Resources/fa-cog-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..3fc12f5d0ec7f2d2cff2334eac25c51fe397ee5a GIT binary patch literal 405 zcmV;G0c!qPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;2FkAZe8V009L_L_t(IPmR;PY63wNhT-uKvGJ#q+<oNDQrZn1raL?3rXH@-6OL*tL_I6%sOXx&(1;jAWQt= z99`u|4I`AItLx3CiUNjcAczXKQ1J?%@!I^vwBDnRMBd=v@JtUuK9E(M_KhGFOkhR& zoEPZ3o3Qp}jxui9!8T17ep*P^91tCNdP6i3Kk6i_PMy28_k-!cPgVyf*vMTGW7y^f zZRpLK`vSJ7^U&CXyu*qfnL-av z2WTp4djK71uIR10S^vi1oAX4IQCGK7g>mj5{-Su*#dNsN00000NkvXXu0mjf{_&|j literal 0 HcmV?d00001 diff --git a/MarkdownViewerPlusPlus/Resources/fa-info-16x16.png b/MarkdownViewerPlusPlus/Resources/fa-info-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..286b75f714cac9083b02cffc69f642cf2f467391 GIT binary patch literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucLCF%=h?3y^w370~qEv>0#LT=By}Z;C1rt33 zJtM=93Yk-Zii$j4978PpuU_29*0#LT=By}Z;C1rt33 zJtM=93Yk-ZioSWeIEGmGw_e(q#pEc``jB^$k(m_pL8aa!YOW64-6c)|BJ&;QE9eUZ z-M-0^^jP~wr_iO2xv8rJHf$3W1S(v!C8f; z=L_-_PO;uO%e>`+3u~pwN8Y=|-5TK+T4nPtw9A+r65FNstYaxd?3@QDXV!Y35I+{w zo>y_S+xUMX&(0_5OD3F<-l9-{`NGVneCOQq!|o)%J@d@_@pHzj0c=rX&;0GCnryL| f%HOBX@sH8Aqv>bP0l+XkKRAZJ? literal 0 HcmV?d00001 diff --git a/MarkdownViewerPlusPlus/app.config b/MarkdownViewerPlusPlus/app.config index 0c8434c..5d3c109 100644 --- a/MarkdownViewerPlusPlus/app.config +++ b/MarkdownViewerPlusPlus/app.config @@ -4,7 +4,7 @@ - + diff --git a/MarkdownViewerPlusPlus/packages.config b/MarkdownViewerPlusPlus/packages.config index 208e3c5..3075f92 100644 --- a/MarkdownViewerPlusPlus/packages.config +++ b/MarkdownViewerPlusPlus/packages.config @@ -1,12 +1,12 @@  - - - + + + - + - + \ No newline at end of file diff --git a/README.md b/README.md index 21e5e5c..4c97608 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 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.1-yellow.svg)](https://github.com/nea/MarkdownViewerPlusPlus/releases/tag/0.8.1) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/insanitydesign) +# 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 @@ -10,14 +10,16 @@ A Notepad++ Plugin to view a Markdown file rendered on-the-fly * 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 -* 0.7.1 - * Added handling of local image files Download the latest [release here][9]. For a full version history go [here][10]. @@ -34,12 +36,12 @@ This plugin requires at least * .NET Framework 4.0 or above It has been tested under the following conditions -* Notepad++ 7.5.4 32-bit and 64-bit +* 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://github.com/nea/MarkdownViewerPlusPlus/raw/master/MarkdownViewerPlusPlus/Resources/markdown-16x16-solid.png), +* click the toolbar icon ![Markdown icon](https://github.com/nea/MarkdownViewerPlusPlus/raw/master/MarkdownViewerPlusPlus/Resources/markdown-16x16-solid.png?raw=true), * use the shortcut _Ctrl+Shift+M_ * or open it via the **Plugins** sub-menu From e65b5c49c1c1ef9e529e13b06df99cbc446e0cc8 Mon Sep 17 00:00:00 2001 From: Savas Ziplies Date: Sun, 29 Apr 2018 14:01:31 +0200 Subject: [PATCH 7/7] Changed: Updated README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4c97608..725c014 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ A Notepad++ Plugin to view a Markdown file rendered on-the-fly 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://github.com/nea/MarkdownViewerPlusPlus/blob/master/MarkdownViewerPlusPlus/Resources/markdown-16x16-solid.png?raw=true) to the toolbar to toggle the viewer as dockable panel. +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. @@ -41,18 +41,18 @@ It has been tested under the following conditions ## Usage To open the MarkdownViewer++ you can -* click the toolbar icon ![Markdown icon](https://github.com/nea/MarkdownViewerPlusPlus/raw/master/MarkdownViewerPlusPlus/Resources/markdown-16x16-solid.png?raw=true), +* 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-menu To 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://github.com/nea/MarkdownViewerPlusPlus/blob/master/MarkdownViewerPlusPlus/Resources/MarkdownViewerPlusPlus.png?raw=true) +![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://github.com/nea/MarkdownViewerPlusPlus/blob/master/MarkdownViewerPlusPlus/Resources/MarkdownViewerPlusPlus-Options.png?raw=true) +![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.