Some smart people who didn’t want to teach users how to code in HTML invented Textile markup language
Someone more lazy invented MarkDown syntax which is much easier to learn. MarkDown is really nice for small content management systems, blogging engines etc.
For instance, to mark text as bold, you write the “bold text” like “__bold text__”. Other rules can be found in the syntax page.
However, when you have a MS Word document with several pages of bolds, italics and lists, you don’t really want to re-code all the markup.
This is why I wrote a simple macro for converting the most trivial things automatically. This macro does:
- Replace bold and italics
- Replace headings (marked heading1-6)
- Replace numbered and bulleted lists
It’s very buggy, I believe it hangs on larger documents, however I’m NOT stating it’s a stable release anyway! :-) Experimental use only, recode and reuse it as you like, post a comment if you’ve found a better solution.
Click here to download the code.
To use the code:
- open WinWord,
- press Alt+F11 to open the VBA editor,
- right click the first project in the project browser
- choose insert->module
- paste the code from the file
- close macro editor
- go tools>macro>macros; run the macro named MarkDown
Hi! We are currently working on a new web site using MarkDown. Will your experimental macro work with Word for Mac? I have experienced some compatibility problems in other situations… Best, Ingerid
Ingerid Helsing Almaas Editor Arkitektur N Oslo, Norway
Thanks for this. You may be interested to know that it works in Word 2010 on Win 7, still.