This repo "markdown-plus-plus" is a project to support Markdown syntax highlighting in Notepad++. It is done via various User Defined Language (UDL) XML files. All UDLs are carefully designed by human, rather than generated by machine.
You can simply consume the UDL XML file that matches your favorite theme, or config your own using the build system.
Thanks for encouragements and comments. This repo is not only for myself anymore. It's for everyone.
Love Notepad++? Need to write docs in Markdown? This repo is made for you.
Your | Taste! |
---|---|
![]() |
![]() |
Default | Zenburn |
![]() |
![]() |
Bespin | Blackboard |
![]() |
![]() |
Deep Black | Obsidian |
![]() |
![]() |
Solarized | Solarized-light |
![]() |
![]() |
Twilight | Material |
Supports file extensions: .markdown
and .md
Tested: Notepad++ v8.4.4 64-bit on Windows 10
If you had installed Node.js in your system, you can use npx
command to get UDL file(s):
:: Check whether you have Node.js installed
node -v
:: Go to UDL folder of Notepad++. Usually...
cd %AppData%\Notepad++\userDefineLangs
:: Example: Download Solarized-light UDL file
npx markdown-plus-plus solarized-light
:: Example: Download Solarized UDL file for Dark Mode
npx markdown-plus-plus solarized --dark
:: Read help for details
npx markdown-plus-plus --help
You can choose to install this package in your system:
:: Enable `mpp` command instead of `npx markdown-plus-plus`...
npm install --global markdown-plus-plus
:: List all themes
mpp --list
:: Example: Download Solarized-light UDL file
mpp solarized-light
:: Example: Download Solarized UDL file for Dark Mode
mpp solarized --dark
:: Update this package
npm update markdown-plus-plus
<udl\>
folder.<userDefineLangs\>
folder of Notepad++. The directory is usually <%AppData%\Notepad++\userDefineLangs\>
.Enjoy!!
Notepad++ features Dark Mode with great UDL enhancements since v8.1.3. In short, you may want 2 files:
:: Make sure you are running mpp v3.4+
mpp --version
:: Go to UDL folder of Notepad++. Usually...
cd %AppData%\Notepad++\userDefineLangs
:: Download Solarized UDL file
mpp solarized
:: Download Solarized UDL file for Dark Mode,
:: even though you use the same theme
mpp solarized --dark
NPP will pick up the correct file for dark mode. Here're some conventions in this package:
Normal | Dark Mode | |
---|---|---|
Command | mpp <theme-name> |
mpp <theme-name> --dark |
Filename | <markdown.theme-name.udl.xml> |
<markdown.theme-name.dark.udl.xml> |
UDL name | Theme Name (markdown) | Theme Name [markdown] |
Need your input to solve the following problems:
_em text_
, __strong text__
and ___em strong text___
only parse the first word because it will screw up some URLs such as example__url
.* a \<li\> bullet point
). Instead, please write in - a bullet point
or + a bullet point
.~~like this~~
is still missing. Will do it later.If Notepad++ doesn't redraw your current markdown file(s), please re-open the NPP application and/or re-open the markdown file. Upgrade NPP may help.
The best way to build your own UDL file is to fork this repo. You need to install Node.js in your system.
:: In your dev folder
git clone https://github.com/Edditoria/markdown-plus-plus.git
cd markdown-plus-plus
npm install
:: Play around. Finally, run the build script
npm run build
For details, please read the document: build-workflow.md
Options are reviewed in v3. In each config file in the config folder, you can adjust for your own build. Here are some examples:
Option | Descriptions |
---|---|
goodies.highlightHex |
Highlight HEX value. |
flags.transparentBg |
Make the text background being transparent. :warning: Use it with caution |
flags.asteriskUnorderedList |
Enable the markdown style of asterisk-style bullet points (* a \<li\> bullet point ). :warning: Use it with caution |
For details, please read the document: build-workflow.md
npx markdown-plus-plus --help
.git clone
then npm install
to develop this repo. Less dependency hell.<udl\>
.<config\>
.<markdown.[theme-name].udl.xml>
.<markdown.[theme-name].config.json>
tl;tr For pull request, please merge from your new branch into my master branch (recommend enabling "Allow edits from maintainers"); Or, propose a file change in Github directly; Or, hit me a message via issue page or my social contacts.
For details, please kindly read CONTRIBUTING.md.
:beer: Thank you so much! :pray:
Copyright for portions of this repository are held by Thomas Smits since 2010 as part of his repository. All other copyright are held by Edditoria since 2012.
Code released under the MIT License. Docs released under Creative Commons.
As human-readable summary (but not a substitute for the license):
You can use it, share it, modify the code and distribute your work for private and commercial uses. If you like, please share your work with me. :pizza: