Markdown Syntax Highlighting for Notepad++
This URL of this repo is renamed! If you had forked this repo to your local machine, please update the remote:# Check if my name exists git remote -v # e.g. origin https://github.com/Edditoria/markdown_npp_zenburn # If yes, please do: (replace origin if need, e.g. upstream) git remote set-url origin https://github.com/Edditoria/markdown_npp.git # Check if it is correct git remote -v
If you had shared this repo in social networks and web, please kindly update the URL to:
Default or Zenburn, your choice! :)
By default, Notepad++ doesn't provide syntax highlighting for Markdown.
I use Markdown everyday, and I'm using a dark theme called Zenburn.
So, I make one for myself, and share to the world.
If you are a Notepad++ and Markdown user, you may like it!
Supports file extensions:
Tested: Notepad++ v7.2.2 (Windows 10)
- Download the Markdown language definition file
- In Notepad++ menu, click
Define your language....
- In User Defined Language windows, click
Importthen open the xml file.
- Restart Notepad++.
- Open and test with a Markdown file e.g. test.md
Need your input to solve the following problems:
*em text*only parse the first word because it will screw up unorder list
___em strong text___only parse the first word because it will screw up some URL contains
[NEW] Beta Is Available For Testing
A complete new version of color scheme is available in branch
It is going to solve the limitation: Parse more than one em word
However, if you use the new UDL file, you will need to change your habbit: No more * unordered list, but you still can use - or + instead.
The file name and UDL name are same with original. If you overwrite existing file, please download and import to NPP from this (master) branch.
Welcome any comment and suggestion!
Build Script for Developers
In v1.1, a build script is provided for your convenience. It will follow the naming convention. It requires
mustache.js to run.
When you run at the first time:
# Check if mustache.js is able to run in current bash mustache -v # Check if the script works source build.sh --help
- Build a new color scheme:
source build.sh [new_name](no space, e.g. awesome_dark)
The script will create a new json file in a new folder:
In the json file:
- Change the name according to the theme, e.g. "Markdown (Awesome Dark)"
- Add your prefered colors in the empty strings, e.g. "FFFFFF"
Build a XML file:
source build.sh [new_name]
⬆️to show your previous command.
A new XML file is ready to serve in the root directory of this repo.
Import in Notepad++ for testing. It's cool, right?
tips: Since the old XML is not overwritten, you can prepare two files in NPP.
Move the XML file into the corresponding theme folder. Done!
tl;tr For pull request, please do check Allow edits from maintainers, and merge from your new branch into my master branch; 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.
Basically I revised the original repo from scratch.
If you don't feel good in my settings, please comment.
I'll try my best to improve.
Or, use Thomsmits' current repo :)
See the LICENSE file for license rights and limitations (MIT).