Blogging in DNN with Markdown Monster by Rick Strahl

Blogging with Windows Live Writer is often a complicated thing. Like with every HTML editor you need to have good knowledge of the HTML language. If you are not careful, you overwrite the default fonts, font width, colors and other styles. If you change your windows installation, transferring the old blogs to the new system becomes a nightmare of googling for paths and other info about where Live Writer stores its information.

Blogging in Markdown is much more straight forward. You can concentrate on your content and not on the style. Markdown has a limited set of formatting options like headline 1 to 5 (# .. #####) , italic, bold, ordered and unordered list, images and links. And you can write markdown with every simple text editor and save it as a file (*.md). If you are using a special markdown editor, you may have WYSIWYG of your writings and your Markdown can be automatically converted to HTML.

The new Markdown editor from Rick Strahl (MarkDown Monster) brings both worlds together: easy writing in MarkDown and automatically uploading as HTML to your blog (MM understands MetaWeblogAPI and works perfect with DNN blog). And if you are using SnagIt by TechSmith as your screenshot tool, MM has a special plugin for easy integration of screenshots into your blog.

What makes it really easy to work with Markdown Monster is its ability to Paste Html from clipboard into the program and vice versa. So even copying parts from a web page and inserting it into your blog post is a piece of cake!

As a software developer it is important to have an easy way to post source code snippets. MM uses a whole bunch of styles for formatting these snippets:

Source code formatting with MM

To insert a code snippet in MarkDown, you type 3 backticks ``` , followed by the source code type (eg. csharp for C#, see highlightjs.org for more information ). After this you insert in a new row your source code and end the snippet with another 3 backticks in another new row.

''' csharp
var info = "your source code goes here";

When its converted from MarkDown to HTML, it is changed to the following:

<code class="csharp">
var info = "your source code goes here";

Finally, in the blog it looks like:

var info = "your source code goes here";

Add this is where the highlighting magic is doing its job! In order to get this running in DNN blog, you have to do the following steps:

Install MM Syntax highlighting in DNN blog:

  1. Copy C:\Program Files\Markdown Monster\PreviewThemes\Scripts\highlightjs\highlight.pack.js to ~/DesktopModules/Blog/Templates/_default/js/
  2. Copy preferred style from C:\Program Files\Markdown Monster\PreviewThemes\Scripts\highlightjs\styles to * ~/DesktopModules/Blog/Templates/_default/css/*
  3. Add this snippet to the footer in Module Settings (or skin or whereever you want):
$(document).ready(function() {
  $('pre code').each(function(i, block) {

Javascript files and CSS files in these folders are loaded automatically by the blog module, so thats all you have to do. If you do not use the builtin SyntaxHighlighter js (shCore etc.) you can delete these, so that they are not loaded any more

Uploading your blog post

When you want to upload your post, you have to enter some metadata first: Dialog for entering post metadata

The Title is taken from the header_1 line that typically starts a post. The abstarct is the text taht is shown as teaser text in the list of multiple posts. Categories must be existing in your blog (otherwise they are ignored). Keywords could be new, they are added then to the list of keywords. At least you have to select to which blog you want to post (3rd tab of this dialog is for defining blog parameters). The Post ID is empty if you first add the post to your blog. Aftrerwards this information is filled and publishing updates the blog post instead of creating a new one.

All these meta infos are saved as part of your document as XML at the end of the .md file.

If you want to learn more about Markdown Monster, see this youtube video created by the master himself!

Total: 9 Comment(s)
best essay writing service
Your writing skill is amazing because only some writers can lead the readers with them and show what secrets are hidden in human minds, hats off and cheers.
Friday, September 1, 2017 · reply ·
This is an awesome motivating article.I am practically satisfied with your great work. http://www.londonittraining.co.uk/comptia-a-plus-training-london">comptia a+ training london
Tuesday, November 7, 2017 · reply ·
This article gives the light in which we can observe the reality. This is very nice one and gives in depth information. Thanks for this nice article. https://rospher.com/services/
Monday, February 5, 2018 · reply ·
Journal Entry Project Help
I must say we should have an online discussion on this. https://www.accountingmanagerial.com/journal-entry-assignment-help-20738 only professional writers can make this kind of material, cheers
Tuesday, March 20, 2018 · reply ·
Putting the ASP.NET Platform in Context homework h
I appreciate this work amazing post for us I like it. https://asphelponline.com/putting-the-asp-net-platform-in-context-14284
Tuesday, March 20, 2018 · reply ·
Sensation And Perception Assignment Help
This site and the resources you provide is really nice keep it up. https://www.assignmentinc.com/sensation-and-perception-assignment-help-13406
Tuesday, March 20, 2018 · reply ·
Strategic-Management Assignment Help
Such a nice post, keep providing good resources. https://www.casequiz.com/strategic-management-18-34491/
Tuesday, March 20, 2018 · reply ·
Entrepreneurship Assignment Help
Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up . https://www.homeworkaustralia.com/entrepreneurship-assignment-help-19488 Thanks for sharing.
Tuesday, March 20, 2018 · reply ·
Dissertation for medical school Medical Thesis Hel
I loved the way you discuss the topic great work thanks for the share. https://www.medicaltheses.com/dissertation-for-medical-school-20121
Tuesday, March 20, 2018 · reply ·


Torsten WeggenMy name is Torsten Weggen and I am CEO of indisoftware GmbH in Hanover, Germany. I'm into DNN since 2008. Before this, I did a lot of desktop stuff mainly coded with Visual Foxpro (see http://www.auktionsbuddy.de). 

I'm programmer, husband, father + born in 1965.

Please feel free to contact me if you have questions.

Latest Posts

DNN module development with AngularJS (Part 6)
12/16/2016 7:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 5)
12/16/2016 6:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 4)
12/16/2016 5:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 3)
12/16/2016 4:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 2)
12/16/2016 3:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 1)
12/15/2016 7:19 AM | Torsten Weggen
Blogging in DNN with Markdown Monster by Rick Strahl
11/27/2016 1:14 PM | Torsten Weggen
Creating a global token engine
11/18/2016 10:25 AM | Torsten Weggen
DnnImagehandler - Hot or not ?
2/21/2015 11:52 PM | Torsten Weggen
Rapid Module Development Part 2 - The multilanguage thing…
4/7/2014 7:32 PM | Torsten Weggen

My Twitter

Torsten Weggen 3/1/2018

Yeah! Booked my journey to #DNNConnect2018 ! Will be great to meet old friends again and have some Guiness together! #DNNCMS rulez !

Torsten Weggen 2/17/2018

Yess! My first commercial hybrid mobile App build with #ionic + #Angular and connected with #DNNCMS is online now https://t.co/61nDXYXu14

Torsten Weggen 1/13/2018

@TChailland Hi Thomas - no problem! Have a nice vacation and let me know when you're back.