Community
    • Login

    [New Plugin] New Markdown Text Plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    17 Posts 7 Posters 34.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KnIfERK
      KnIfER
      last edited by

      You’ll see serveral placeholders because the plugin was written within one day.

      I’ve planned a lot of possible features, but the progress is stalled in choosing a decent browser kernel. Currently I am using miniblink, which is only partialy open sourced :

      • minilink_x64.dll(~30mb) open sourced main module. include a single-threaded wke browser wrapper.
      • mb.dll(2mb) non-free extension. include a custom multi-threaded browser wrapper.

      ( the alpha-release is using both of them. )

      1 Reply Last reply Reply Quote 2
      • linpengchengL
        linpengcheng
        last edited by

        Very good plugin! Can you release the x86 version?

        KnIfERK 1 Reply Last reply Reply Quote 0
        • KnIfERK
          KnIfER @linpengcheng
          last edited by

          @linpengcheng when it’s stable I’ll build a x32 version

          1 Reply Last reply Reply Quote 2
          • linpengchengL
            linpengcheng
            last edited by

            @KnIfER thanks!

            1 Reply Last reply Reply Quote 0
            • Makwana PrahladM
              Makwana Prahlad Banned
              last edited by

              Hello,@KnIfER
              Please try this steps,To [New Plugin] New Markdown Text Plugin

              Step 1 :- In the Notepad++ menu bar, click Plugins > Plugins Admin.
              Step 2 :- Search for “markdown”, and select MarkdownViewer++, then click the install button.
              Step 3 :- Once installed, allow Notepad++ to restart and load up any Markdown file. Then, click the “M” button on the far right of the toolbar to toggle the Markdown preview pane

              I hope this information will be useful.
              Thank you.

              1 Reply Last reply Reply Quote -4
              • Developing_TED
                Developing_TE
                last edited by

                I am going to continue and finish this plugin project.

                I was waiting for the formal release of Edge’s Webview2 actually . I thought it will come along with the newer version of Edge Browser, but months later, it still isn’t there. It turned out that I just to install a “Webview2 runtime”. —— I hope he news is not toooo late :)

                Plans:

                1. write some Pimpl code. the old multi-browser code is to long. Need to separate it into Pimpls of miniblink and Webview2.
                2. embed wke maybe . wke is the smallest.
                3. Enrich the features。Turn it into a HTML viewer, into an offline ShaderToy Viewer …
                1 Reply Last reply Reply Quote 1
                • KnIfERK
                  KnIfER
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • KnIfERK
                    KnIfER
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • linpengchengL
                      linpengcheng @KnIfER
                      last edited by

                      @KnIfER If user can define the conversion command line of various file types to html in the options, instead of the native engine of md2html, it will become:

                      1. Preview plugins for various file types, not limited to md
                      pandoc.exe current-file.t2t xx.html
                      pandoc.exe current-file.rst xx.html
                      pandoc.exe current-file.adoc xx.html
                      
                      1. sql file execution DB query, result convert to html preview
                      python.exe user_def_query.py xx.sql xx.html
                      
                      1. the data file execution python or R language visualization script, result convert to html preview
                      rscript.exe user_def_data2plot.r xxx.csv x.html
                      
                      1. Data preview of various data structures
                      python.exe user_def_datastruct2html.py xx.java xx.html
                      
                      1. Literary Programming using Markdown comments
                      python.exe user_def_mlp.py xx.py xx.html
                      
                      linpengchengL 2 Replies Last reply Reply Quote 0
                      • linpengchengL
                        linpengcheng @linpengcheng
                        last edited by

                        1. Run the current script automatically and display the html result
                        2. Webapp test
                        1 Reply Last reply Reply Quote 0
                        • linpengchengL
                          linpengcheng @linpengcheng
                          last edited by

                          The html(markdown) preview window will become a magic showcase.

                          1 Reply Last reply Reply Quote 0
                          • linpengchengL
                            linpengcheng
                            last edited by linpengcheng

                            “Preview HTML” plugin can do it.

                            Notepad++\plugins\Config\PreviewHTML\Filters.ini

                            [hiccup]
                            Extension=.hiccup, .hip
                            Language=hiccup
                            Command=C:\Notepad++\tools\clj\bb.exe C:\Notepad++\tools\clj\hiccup2html.clj  "%1"
                            

                            note: bb.exe (babashka) is a native Clojure interpreter for scripting with fast startup.
                            https://github.com/babashka/babashka

                            Notepad++\tools\clj\hiccup2html.clj

                            (use '[hiccup.core :as hiccup])
                            (->> *command-line-args* 
                                 first
                                 slurp
                                 read-string
                                 html
                                 print)
                            

                            test.hiccup

                            [:h1 "111" [:br] 
                              [:p "abcdfghicg"]]
                            

                            hiccup2html.png

                            1 Reply Last reply Reply Quote 0
                            • linpengchengL
                              linpengcheng
                              last edited by

                              update:
                              hiccup2html.clj

                              (use 'hiccup.core)
                              (->> *command-line-args* 
                                   first
                                   slurp
                                   read-string
                                   eval
                                   html
                                   print)
                              

                              test.hiccup

                              [:p
                                [:h1 "List"]
                                [:ul
                                  (for [x (range 1 4)]
                                    [:li x])]]
                              

                              image:
                              hiccup2html_h1_ul_for_li.png

                              1 Reply Last reply Reply Quote 0
                              • S
                                sociobright @KnIfER
                                last edited by

                                This plugin is a life-saver! Thanks to anyone who worked on this!

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  remotemachining @sociobright
                                  last edited by

                                  @sociobright
                                  Cannot get it to work at all:

                                  Error loading MarkdigWrapper from path C:\Program Files\Notepad++\plugins\NppMarkdownPanel\lib\MarkdigWrapper.dll. Exception: Could not load file or assembly ‘file:///C:\Program Files\Notepad++\plugins\NppMarkdownPanel\lib\MarkdigWrapper.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

                                  All I get

                                  PeterJonesP 1 Reply Last reply Reply Quote 0
                                  • PeterJonesP
                                    PeterJones @remotemachining
                                    last edited by

                                    @remotemachining ,

                                    First, the user you @-mentioned was just a random user who had commented, and is not the same as the person who announced the plugin. The user you mentioned hasn’t been here since making the post in January 2024; and the user who announced the MarkdownText plugin hasn’t been here sincec 2021 (nor have there been any updates to that plugin since that year). I am doubtful that you’d get a response from either of them.


                                    On to the specifics of your issue:

                                    Where did you download the plugin? Did you use a specific URL (if so, share it), or did you just use Plugins Admin?

                                    I ask, because this discussion is about the MarkdownText plugin, which would show up as MarkdownText.dll, but the error messages you typed out are referencing a plugin directory NppMarkdownPanel (which implies the NppMarkdownPanel.dll) but referencing a DLL in a lib sub-directory called MarkdigWrapper.dll – that’s not the normal way that Notepad++ plugins are set up (unless this plugin has multiple DLLs involved, and it’s just having a problem with one of them).

                                    However, your messages imply you are actually using a different plugin, NppMarkdownPanel which is available in the Plugins Admin inside Notepad++, and has been updated much more recently… Assuming that’s the case, I tried installing that plugin and looking at a simple Markdown file: I, too, get an error message about that MarkdigWrapper.dll sub-library. Looks like there’s a major bug that’s making it incompatible.

                                    I went to the most-recent issue that they said they closed, and the people testing the build were using Notepad++ 8.4.9 to do the testing (which would have been current in early 2023, when the last plugin release was made). And I still get the error with plugin v0.7.3 and NPP-64 v8.4.9. I also tried, with the same error, in the 32bit Notepad++/plugin combo.

                                    However, if I instead grab plugin v0.7.0 (which is the version from Plugins Admin) in the 32bit, it works properly for me. And if I use Plugins Admin in 64bit Notepad++ and download the one there (which says 0.7.1 in the dialog, but the plugin’s About box only says 0.7.0), it also works.

                                    So if you downloaded directly from github, try removing the manual installation of the plugin, and instead install using Plugins Admin, and there’s a good chance it will start working for you.

                                    I personally chose the MarkdownViewer++ plugin (0.8.2) from Plugins Admin, and that one works reliably for me. But I do readily admit it hasn’t been updated since 2018, so is obviously not supported anymore.

                                    1 Reply Last reply Reply Quote 2
                                    • First post
                                      Last post
                                    The Community of users of the Notepad++ text editor.
                                    Powered by NodeBB | Contributors