Hi John, There is a full fledged plugin for markdown support in netbeans at [1]. This plugin provides syntax highliting, code structure, code templates, live preview and html export. Its based on the depracated pegdown processor. You can take a look at it and understand about further integration.
[1]: https://github.com/madflow/flow-netbeans-markdown (https://github.com/madflow/flow-netbeans-markdown) Regards Siddhesh Rane May 24, 2020 9:45 AM, "John Kostaras" <[email protected] (mailto:[email protected]?to=%22John%20Kostaras%22%20<[email protected]>)> wrote: Hallo all, when you open a github project in Intellij IDEA, it automatically opens the README.md file. When you open it in NetBeans, you only see the raw markdown text. This simple NetBeans module (https://github.com/jkost/MarkdownViewerForNetBeans/ (https://github.com/jkost/MarkdownViewerForNetBeans/)) implements the first and third of the above screenshots (will provide an implementation of the middle screenshot soon). The result looks like so. I used flexmark-java (https://github.com/vsch/flexmark-java) (which is also used by NetBeans) to convert the markdown to HTML to be displayed to a JEditorPane. Questions: 1. How to integrate it to NetBeans source code if it is found useful? Do I need to create a plugin, sign it etc, then import it NB or it is easier with a pull request? 2. Not sure which location it should be added. Inside editor, inside ide? Any comments/suggestions are welcome. Kind regards, John.
