• Login
Community
  • Login

[New Plugin] New Markdown Text Plugin

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
17 Posts 7 Posters 34.6k 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.
  • K
    KnIfER
    last edited by Apr 13, 2021, 3:59 PM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • K
      KnIfER
      last edited by Apr 13, 2021, 4:04 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • L
        linpengcheng @KnIfER
        last edited by May 9, 2021, 4:19 AM

        @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
        
        L 2 Replies Last reply May 9, 2021, 4:41 AM Reply Quote 0
        • L
          linpengcheng @linpengcheng
          last edited by May 9, 2021, 4:41 AM

          1. Run the current script automatically and display the html result
          2. Webapp test
          1 Reply Last reply Reply Quote 0
          • L
            linpengcheng @linpengcheng
            last edited by May 9, 2021, 5:41 AM

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

            1 Reply Last reply Reply Quote 0
            • L
              linpengcheng
              last edited by linpengcheng May 11, 2021, 3:49 PM May 11, 2021, 3:47 PM

              “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
              • L
                linpengcheng
                last edited by May 12, 2021, 5:44 AM

                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 Jan 12, 2024, 9:06 AM

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

                  R 1 Reply Last reply Mar 21, 2025, 4:32 PM Reply Quote 0
                  • R
                    remotemachining @sociobright
                    last edited by Mar 21, 2025, 4:32 PM

                    @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

                    P 1 Reply Last reply Mar 21, 2025, 8:30 PM Reply Quote 0
                    • P
                      PeterJones @remotemachining
                      last edited by Mar 21, 2025, 8:30 PM

                      @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