Enlighter supports GitHub fenced codeblocks – but this requires that your markdown plugin doesn’t touch these blocks
Thank you for the quick reply.
This is my markdown editor
I can bypass the plugin by converting it to HTML from my external editor, which will post directly to my blog. Can I embed your tags in HTML from Markdown Monster?
The only other way I can it that working is to use your plugin in the HTML view
Thanks,
Howard S.Edidin
Microsoft Certified Cloud Solution Architect
it looks like your editor does already support syntax highlighting of gfm style codeblocks – why do you want to use Enlighter ? that doesn’t make any sense to me
I had written a few tutorials for Microsoft. The one contains code blocks from Markdown Monster
On my blog, I would like to be able to add color to specific sections of code to identify them and provide more information below Adding comments makes the code harder to understand. I also want to prevent the code to be copied.directly. Everything I do is open-source and I prefer that the reader get it from my repository
My editor does but the plug doesn’t seem to I cannot set the maximum width and the code block runs off the screen
what happens if you use gfm codeblocks (three backticks) – does you editor adds syntax highlighting or not ?
if not you can use the Enlighter markdown integration. maybe you can disable the highlighting feature in “markdown monster” ?
another option could be to use raw html tags within the markup – but this won’t make the code section “immutable” againt markdown/html markup – therefore i cannot recommend this method
I also want to prevent the code to be copied.directly.
thats not possible with EnlighterJS or any other editor..you may hook into the copy event via javascript but this is a very bad practice.
I can disable the Markdown Monster highlight.
Markdown monster adds syntax highlighting, but the WP Githuber MD editor is supposed to, but it does not seem to work. Maybe I should use the old editor. There was a plugin to accept markdown.
I will test it out and let you know the results.
BTW, I have total control of the server. I logon as root. My provider provides VPS. I am also running a reverse proxy with port forwarding. I am going to add WP as a swarm service to Docker which I have running. I am porting the database to use MS SQL Server for Linux