Important Notice:
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-plus-plus.git # Check if it is correct git remote -vIf you had shared this repo in social networks and web, please kindly update the URL to:
https://github.com/Edditoria/markdown-plus-plus
Thanks!
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!
Your | Taste! |
---|---|
Default | Zenburn |
Blackboard | Deep Black |
Supports file extensions: .markdown
and .md
Tested: Notepad++ v7.2.2 (Windows 10)
- Download the Markdown language definition file
- Default Theme : userDefineLang_markdown.xml
- Zenburn Theme : userDefineLang_markdown_zenburn.xml
- Blackboard Theme : userDefineLang_markdown_blackboard.xml 🆕
- Deep Black Theme : userDefineLang_markdown_deep_black.xml 🆕
- In Notepad++ menu, click
Language
and selectDefine your language...
. - In User Defined Language windows, click
Import
then open the xml file. - Restart Notepad++.
- Open and test with a Markdown file e.g. test.md
Enjoy!!
Need your input to solve the following problems:
*em text*
only parse the first word because it will screw up unorder list_em text_
,__strong text__
and___em strong text___
only parse the first word because it will screw up some URL containsexample__url
A complete new version of color scheme is available in branch feature/emphasis-multiple-words
.
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.
⚠️ Alert: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.
Link: feature/emphasis-multiple-words
Welcome any comment and suggestion!
In v1.1, a build script is provided for your convenience. It will follow the naming convention. It requires bash
and 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 workflow:
- 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]
tips: Press ⬆️ 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.
🍺 Thank you so much! 🙏
Note to Original Repo from @thomsmits
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 :)
Copyright for portions of this repository are held by Thomas Smits, 2010 as part of his repository. All other copyright are held by Edditoria, 2012-2017.
See the LICENSE file for license rights and limitations (MIT).