Git Product home page Git Product logo

markdown-plus-plus's Introduction

Markdown Syntax Highlighting for Notepad++

Writing docs in Markdown is common today, but Notepad++ doesn't provide syntax highlighting for Markdown by default. That's why this repo exists.

This repo "markdown-plus-plus" is a collection of User Defined Language XML files for Markdown syntax highlighting in Notepad++. You download this package. Import a file that matches your favorite theme, and then you are good to go.

Thanks for encouragements and comments. This repo is not only for myself anymore. It's for everyone.

If you are a Notepad++ and Markdown user, this is made for you.

Key Changes from v2 to v3 ๐Ÿ†•

  • Markdown-plus-plus is a npm package now. You can fetch the UDL files in command line directly, npx markdown-plus-plus --help.
  • Build system relies on Node.js. git clone then npm install to develop this repo. Less dependency hell.
  • In v2, there are 2 builds for every themes: Modern and classic. Now, there are only 1 build. The main difference in classic build, asterisk-style bullet points, becomes an option in v3.
  • Better file structure:
    • You can find all UDL files in one single folder called <udl/>.
    • You can modify the config files in another folder called <config/>.
    • Filename for UDLs follows the pattern: <markdown.[theme-name].udl.xml>.
    • Filename for configs follows this pattern: <markdown.[theme-name].config.json>

Screenshot

Your Taste!
Markdown in Default Theme of Notepad++ Markdown in Zenburn Theme of Notepad++
Default Zenburn
Markdown in Bespin Theme of Notepad++ Markdown in Blackboard Theme of Notepad++
Bespin Blackboard
Markdown in Deep Black Theme of Notepad++ Markdown in Obsidian Theme of Notepad++
Deep Black Obsidian
Markdown in Solarized Theme of Notepad++ Markdown in Solarized-light Theme in Notepad++
Solarized Solarized-light

Supports file extensions: .markdown and .md
Tested: Notepad++ v7.8.4 32-bit (on Windows 10 64-bit)

Usage

Node.js

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++
cd %AppData%\Notepad++\userDefineLangs

:: Example: Download Zenburn UDL file
npx markdown-plus-plus zenburn

:: Read help for details
npx markdown-plus-plus --help

Download Manually

  1. Download the source code in latest release page. It should be a zip file.
  2. Open the zip file and go to <udl/> folder.
  3. Copy a XML file of your favorite theme, and paste in <userDefineLangs/> folder of Notepad++.
  4. Restart Notepad++.
  5. Open and test with a Markdown file e.g. test.classic.md.

Enjoy!!

Limitations

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 URL contains example__url.
  • Cannot use asterisk-style bullet points (* a \<li\> bullet point). Instead, please write in - a bullet point or + a bullet point.
  • Improve documentation. My English sucks. (*ยด๏ฝฐ`*)

Build Your Own UDL Files

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

Options are reviewed in v3. In each config file in the config folder, you can find these options:

Option Descriptions
goodies.hex Highlight HEX value.
flags.transparentBg Make the text background being transparent. โš ๏ธ Use it with caution
flags.asteriskUnorderedList Enable the markdown style of asterisk-style bullet points (* a \<li\> bullet point). โš ๏ธ Use it with caution

For details, please read the document: build-workflow.md

Contribution

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! ๐Ÿ™

Copyright and License

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-2020.

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 codes and distribute your work for private and commercial uses. If you like, please share your work with me. ๐Ÿ•

markdown-plus-plus's People

Contributors

edditoria avatar talllguy avatar alderete-sfdc avatar raffaelemorganti avatar theodus2009 avatar borekon avatar andrewhu-uw avatar ohar avatar ronjouch avatar thomasleveil avatar jonmoon74 avatar misstickles avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.