Comments (12)
Hi, the last version 0.6.2 was a maintenance release to fix a bug with the 64-bit version of Npp (no updates after editing).
Also the new Npp Headers were included.
But I dont plan to add a lot new features, just "bugfixing".
If you are happy with the version of vinsworld, stick with it ;)
from nppmarkdownpanel.
If you are happy with the version of vinsworld, stick with it ;)
I'd be happy to abandon my fork and use this "official" repo if there is going to be the ongoing development I've witnessed in the last few weeks. I've been trying to incorporate some of the changes in my fork. The things my fork does that this does not yet:
- Status bar in the preview window to show actual URL of hovered links
-
Option to synchronize with vertical scroll. Attempt to make estimates about size of document and scrolling so that when vertically scrolling (e.g., mouse wheel) the preview scrolls with the edit view. This would work better if Scintilla
SCN_UPDATEUI
actually passed theUpdated
field correctly. -
Render HTML documents by bypassing the Markdig and just going straight to render HTML
- Markdown and HTML extensions that trigger rendering, print error otherwise:
- A set of filters (only manually via the config file) to render HTML from 3rd party programs:
C:\usr\bin\npp64\plugins\Config\MarkdownPanel.ini
10: [Filter0]
11: Extensions=.pl,.pm
12: Program=pod2html.bat
13: Arguments=--css C:\usr\bin\npp64\plugins\MarkdownPanel\style.css --cachedir %TEMP%
I think that's mostly it.
Feel free to lift any of my code and put it in. Alternatively, I could create some PR's if that would work. I have very little C# skills so many of my fixes are brute forcing something in vs. properly developing it, but this plugin was superior to all the other Markdown / HTML previewers for Notepad++ - just seemed the development stalled so I forked.
Cheers.
from nppmarkdownpanel.
It's been a couple of years. @mohzy83, how does your version (v0.6.2) compare to vinsworldcom's version (v0.6.5.2) these days? Just wondering for myself and other users, which version we should use.
It doesn't look like there's been much pulling of changes, despite recent activity on both forks, but currently (June 2022) vinsworldcom's version seems to have more "constructive" changes (i.e. complex under-the-hood stuff, not just Readme updates) - maybe worth communicating or sharing code changes...?
from nppmarkdownpanel.
@Darthagnon there is also https://github.com/monoblaine/MarkdownViewerPlusPlus which seems pretty active
from nppmarkdownpanel.
Feel free to lift any of my code and put it in. Alternatively, I could create some PR's if that would work. I have very little C# skills so many of my fixes are brute forcing something in vs. properly developing it, but this plugin was superior to all the other Markdown / HTML previewers for Notepad++ - just seemed the development stalled so I forked.
Cheers.
Hi,
I think the features you have implemented are really useful!
Would appreciate if you could create PR's with your changes, so I could put them in.
But I am not sure if your fork is still compatible with this one.
The feature to check for valid file extenstions has been implemented in version 0.7.0, means this feature can be skipped.
Is the "Filter" feature some kind of pipeline for further processing of markdown files or just a different way to convert other source files to html?
Cheers.
from nppmarkdownpanel.
Would appreciate if you could create PR's with your changes, so I could put them in.
Sure. I'll start with easy ones - status bar, zoom level slider number initialize, etc.
The feature to check for valid file extenstions has been implemented in version 0.7.0, means this feature can be skipped.
Not sure it needs to be skipped, we could probably think about how to blend them. I have in settings 2 text boxes, one for valid Markdown extensions (call that your "SupportedExtensions") and one for the HTML extensions to render HTML documents by the renderer, without first passing to Markdig. That part may need a little work.
Is the "Filter" feature some kind of pipeline for further processing of markdown files or just a different way to convert other source files to html?
Yes. My README has an example. pod2html
runs Perl scripts through a converter that takes the POD (plain old documentation) and creates an HTML output. I then send that HTML output to the renderer (partial):
var filterProgram = filterProgs[filter];
var filterArguments = filterArgs[filter];
var process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = filterProgram,
Arguments = $"{filterArguments} \"{notepadPPGateway.GetCurrentFilePath()}\"",
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true
}
};
process.Start();
string data = process.StandardOutput.ReadToEnd();
process.WaitForExit();
markdownPreviewForm.RenderHtml(data, notepadPPGateway.GetCurrentFilePath(), false);
Cheers.
from nppmarkdownpanel.
So it seems creating a fork is not possible since I already have a fork of an upstream. I tried a pull request, with a simple change but it included all of my past changes. Not sure how to proceed.
Suggestions?
from nppmarkdownpanel.
Well this sounds like its going to be difficult...
I am no Github expert user, but maybe its possible for you to cherry pick just one commit which contains the specific feature?
Hopefully we don't need to do a manual migration of your changes, that would be quite tedious.
from nppmarkdownpanel.
I am no Github expert user
Nor am I !
Maybe I could submit issues with diff/patch files for some of these more simple ones to start off?
Cheers.
from nppmarkdownpanel.
Ok we could try this approach.
I dont think Github was intended to be used that way but who cares ;)
from nppmarkdownpanel.
I dont think Github was intended to be used that way but who cares ;)
I know, sorry, but I've tried a few different ways to get another fork of your repo directly, but it's preventing me since I already have a fork from UrsineRaven. When I tried my PR, it included ALL the changes from mine, not just the one I put on the candidate branch. That is very undesirable. I want to contribute, not force a rewrite!
I tried a first simple one here: #58
Cheers.
from nppmarkdownpanel.
I have applied one patch #58 and two PR's.
Everything compiles and works just fine.
@vinsworldcom Thanks for your contribution!
from nppmarkdownpanel.
Related Issues (20)
- Code fences not rendered unless language label is in `ColorCode.Languages` dictionary (v0.7.0 regression) HOT 1
- Plugin "Failed to load" HOT 17
- Zoom label does not update on Settings panel init HOT 3
- Preview panel should have a status bar for hover links HOT 1
- Save As toolbar button should provide default directory and filename HOT 1
- Menu should include Help to access README
- Settings dialog should render only if visible
- BUG: New Help menu references PluginFilename should be PluginName
- Fails to pick up Dark Mode in Npp HOT 4
- [Request] Default monospace & code colors in dark mode are too bright? HOT 2
- [Feature] Support more languages for syntax highlighting (YAML, Ruby and Python) HOT 2
- [Question] run outside Npp HOT 3
- Plugin release v0.7.2 searches help files in wrong directory HOT 7
- Would you get ProcessorExe to support scripts? HOT 5
- [BUG] Settings file NppMarkdownPanel.ini isn't used anymore HOT 1
- [Feature Request] Is it possible to add Markdeep to the viewer? HOT 3
- [Future request] The MarkdownViewer++ does not render the latex equation HOT 2
- [Feature Request] Pandoc post-processing via Save As... HOT 1
- Table of Contents (TOC) option HOT 1
- Local relative path not working with img tag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nppmarkdownpanel.