GithubHelp home page GithubHelp logo

edditoria / markdown-plus-plus Goto Github PK

View Code? Open in Web Editor NEW
1.5K 67.0 279.0 2.21 MB

Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)

License: MIT License

JavaScript 100.00%
notepadplusplus udl syntax-highlighting markdown notepad-plus-plus hacktoberfest

markdown-plus-plus's Introduction

Markdown Syntax Highlighting for Notepad++

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.

Screenshots

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
Markdown in Twilight Theme of Notepad++ Markdown in Material Theme in Notepad++
Twilight Material

Supports file extensions: .markdown and .md
Tested: Notepad++ v8.4.4 64-bit on Windows 10

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

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++. The directory is usually <%AppData%\Notepad++\userDefineLangs\>.
  4. Restart Notepad++.
  5. Open and test with a Markdown file e.g. test/at-a-glance.md.

Enjoy!!

Dark Mode

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]

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 URLs such as example__url.
  • Cannot use asterisk-style bullet points (* a \<li\> bullet point). Instead, please write in - a bullet point or + a bullet point.
  • Improve documentations. My English sucks. (*´ー`*)
  • The GFM's strikethrough ~~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.

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 adjust for your own build. Here are some examples:

Option Descriptions
goodies.highlightHex 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

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 theme: 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>

Contribution

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.

🍺 Thank you so much! 🙏

Copyright and License

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

markdown-plus-plus's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdown-plus-plus's Issues

Links are broken in readme.md

Links to your screenshots as well as the language definition files: userDefineLang.xml are currently broken. Sorry, I'm new to github so hopefully this is the best way to report the issue?

CSS examples for color highlighting Python code? How to color highlight Python in MarkdownPlusPlus?

Does anyone have a CSS file that can be used in MarkdownPlusPlus to format Python code similar to what "pygments" does for highlighting for some programs like Jupyter Notebook?

I want to color highlight Python code embedded in Markdown text. MarkdownPlusPlus detects the Python code just fine, but it renders it in black and white only.

Is it even possible to color highlight code in markdown using CSS alone? Or is a Javascript script needed to parse and apply the CSS?

(I am pretty ignorant about how to apply CSS outside of a browser. The only stupid question is the one that isn't asked, right? 8^)) )

How would I go about doing Python color highlighting in MarkdownPP?

Can this be done with

 ... 
tags without using javascript library like highlight.js ?

https://highlightjs.readthedocs.io/en/latest/

Here's an example that I found, but it looks like the javascript library has to be embedded in the HTML document directly.

Any guidance (or a solution) folks could provide would be much appreciated.

Multiple word text formatting does not work for `_`, `__`, `___`, etc.

Multiple word text formatting using underscores instead of asterisks doesn't work properly. This is important to me because I need to write my markdown in a way that is mostly compatible with TWiki syntax, and TWiki and Markdown happen to share __ as a syntax for denoting important text (it's bold for Markdown, and bold with italics for TWiki).

markdown_plus_plus__multi_word_text_formatting_with_underscores_bug

I'm using Notepad++ v7.5.8 and markdown-plus-plus 81a86b4.

More clarifying instructions

Hi, your instructions tell us to copy the xml from <udl/> to <userDefineLangs/>.

Would be very helpful if you also said that this folder is found in the %APPPDATA% folder. That was not obvious to me and I was confused when I couldn't find the folder in Program Files/Notepad++.

Thanks!

Killer Relaxation theme for markdown plus plus

If someone wants to add markdown language for [ Killer Relaxation theme] (https://sourceforge.net/p/killerrelaxation/wiki/Home/)

<NotepadPlus>
    <UserLang name="Markdown [Killer Relaxation]" ext="md markdown" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
            <Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00# 01 02((EOL)) 03&lt;!-- 04--&gt;</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1">.</Keywords>
            <Keywords name="Numbers, suffix2">.</Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">@ &lt; &gt; \&lt; \&gt; \\ \` \* \_ \{ \} \[ \] \( \) \# \+ \- \. \! \~ :|: |: :| | \|</Keywords>
            <Keywords name="Operators2">- +</Keywords>
            <Keywords name="Folders in code1, open"></Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close"></Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">http:// (http:// https:// (https:// mailto: (mailto: ftp:// (ftp:// ftps:// (ftps:// (/ /</Keywords>
            <Keywords name="Keywords2">==== ----</Keywords>
            <Keywords name="Keywords3">*** ___</Keywords>
            <Keywords name="Keywords4">** __</Keywords>
            <Keywords name="Keywords5">* _</Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00![ 00[ 01\ 02] 02] 03``` 03` 03~~~ 04\ 05``` 05((EOL `)) 05~~~ 06*** 06___ 07\ 08((EOL ***)) 08((EOL ___)) 09** 09__ 10\ 11((EOL **)) 11((EOL __)) 12* 12_ 13\ 14((EOL *)) 14((EOL _)) 15** 15__ 16\ 17((EOL **)) 17((EOL __)) 18* 18_ 19\ 20((EOL *)) 20((EOL _)) 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="0" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" styleID="1" fgColor="7D7D7D" bgColor="333333" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="93C763" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="NUMBERS" styleID="3" fgColor="FFCC33" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" styleID="4" fgColor="EDD6ED" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" styleID="5" fgColor="93C763" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS3" styleID="6" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="3" nesting="0" />
            <WordsStyle name="KEYWORDS4" styleID="7" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS5" styleID="8" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="KEYWORDS6" styleID="9" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" styleID="10" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" styleID="11" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" styleID="12" fgColor="DFC47D" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" styleID="16" fgColor="EDD6ED" bgColor="333333" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="DELIMITERS2" styleID="17" fgColor="999999" bgColor="333333" fontName="Consolas" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" styleID="18" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="3" nesting="0" />
            <WordsStyle name="DELIMITERS4" styleID="19" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS5" styleID="20" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" styleID="21" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" styleID="22" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" styleID="23" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

* inside **

Hello,

I have seen other issues about * and two words or even ***. I don't if my issue is related but the parsing of the following text fails:

C code is inside *.c files.

Here the result in Notepad++:
double_star

Except this issue, my first impression is good. Thanks a lot!
Bktero

Notepad++ changed?

I copied the userDefinedLang.xml to the Program Files (x86)/Notepad++ folder and I don't see any syntax highlighting for my .md file. Am I missing something?

Thank you.

Headings (#) separated by single line aren't highlighted

Issue

When a file is opened with the Markdown Default Modern style, #-styled headings aren't highlighted properly if they are separated by a single newline.

This means that the following code block:

# Heading 1
## Heading 2
### Heading 3
#### Heading 4

Will render as:

Highlighting missing for headings 2 and 4

Steps to reproduce

  1. Create a new file in Notepad++.
  2. Type 2 or more # styled headings separated by a single newline.
  3. Save as file.md.
  4. Select Language → Markdown.
  5. Right click filename in upper tab bar and select Reload.

System Info

  • OS: Windows 7 Professional - Service Pack 1 (64 bit)
  • Notepad++ Version: Notepad++ v7.5.3 (32 bit)
  • Markdown++ Version: Markdown Default Modern 2.1

Folding support for nested lists?

I don't know if this is a very recurrent use case, but I personally like to make a plan of my documents before writing them.
To do so, I use nested lists in this kind of fashion:

  • Intro
    • Some kind of context
    • An anecdote maybe
  • Main part
    • A chapter with subparts
      • One subpart
      • Here's another
    • Another chapter
    • One last chapter because I can
  • Conclusion
    • Wow, you have read all of this

It would be nice to be able to fold parts of these. Though I would understand if such feature would mess up the rest. We're not writing a full plugin here, so the possibilities are probably limited.

Import userDefinedLang-markdown.solarized-light.modern.xml => Fail to Import

Import userDefinedLang-markdown.solarized-light.modern.xml => Fail to Import

Info:
Notepad++ v7.5.9 (32-bit)
Build time : Oct 14 2018 - 15:02:52
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : AutoSave.dll autosave2.dll BetterMultiSelection.dll binhex.dll combine.dll ComparePlugin.dll docMonitor.unicode.dll DoxyIt.dll Explorer.dll GrepBugsPluginNpp.dll HexEditor.dll MarkdownViewerPlusPlus.dll NppColumnSort.dll NPPJSONViewer-win32.dll nppRegEx.dll PluginManager.dll XMLTools.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll LocationNavigate.dll

Default Language

Is there a way to add this as a default language under Preferences->New Document ?

image

Perhaps a helpful tip to add to installation instructions regarding already opened markdown files.

Markdown files already open in Notepad++ (even the latest version) will not show the newly installed styles until the file itself is closed and reopened. Restarting Notepad++ doesn't update the style shown.

I spent longer than I care to admit on figuring out why the newly installed markdown style definition file (markdown.blackboard.udl.xml) wasn't having an effect on the markdown file I'd opened before installing the style.

I'm using the Windows x64 version of Notepad++ 7.9.1.

.

.

Pre compiled binaries

I am running W10 x64, and I would like to use this. However, the compile / make process is out of my time reach ... would you post the binaries in release dirs?

Thanks.

Two small syntax highlighting problems

  1. If I use *foo bar* to create italic text or **foo bar** to create bold text, then currently only the first word will be highlighted properly, all other words are NOT highlighted correctly.
  2. If I create a web-link like [text](http://example.com/document.html#some_anchor) then the whole line, starting at the the # character, will appear in bright orange!

Checkboxes: Grey out completed tasks

- [ ] This is an action item.
- [x] This one is completed. I want this line to be gray.

Is it possible to gray out the second line? It would make my TODO-lists much more readable.

I tried to add a keyword - [x] in the UDL-form, but I didn't figure out how to do it right. The space is interpreted as a seperator. Quote marks, parentheses, or-\s[x] don't do the trick either.

Support for Notepad++ 8.6?

Hi,

I tried applying the markdown udl's but they crash the new notepad++ 8.6; do others have the same problem?

I don't know if this is just an issue for new imports, or also for those that had it already installed.

I copied the xml files from udl directory to C:\Program Files\Notepad++\themes
And selected it from settings > style configurator > selected theme from dropdown (crashes here)

I use 64bit version of Notepad++ 8.6

Auto match udl scheme with the current theme

Hi there. As the title says, is there any way to auto match the markdown's style with the current theme when you have multiple scheme files inside the userDefineLangs folder? Let me explain better this scenario:

Dark Mode Enabled in settings;
Currently selected theme = Zenburn under Settings --> Style Configurator

Inside the userDefineLangs folder i have those two files (for example):

  • markdown.bespin.dark.udl
  • markdown.zenburn.dark.udl

In this scenario, when i try to open a .md file with notepad, it will always autoselect the markdown.bespin.dark.udl (maybe becouse of alphabetically orders of the theme's name). I can change it back to zenburn dark after the file is loaded under Notepad++ but if i close Notepad++ and reopen another .md file, it auto select the markdown.bespin.dark.udl style again.

For now the only workaround i've found is to have only one style inside the userDefineLangs folder which match the current theme.

Any clue? Thank you!

Some problems

I've installed /userDefineLang.xml for default_theme in my Notepad++ 6.5.1 and noticed following:

Things that doesn't correspond to given screenshot:

  • ordered lists doesn't work at all (unordered does), numbers are not bolded / styled.

Things, that doesn't work at all:

  • there is no special styling for code blocks (intended by four spaces/tab),
  • bold or italics breaks, when there is a space inside, so in **an exact** only **an part is bold,
  • blockquotes have only their symbol (>) marked in different font, while should have entire blockquoted text printed in different style,
  • numbers are printed in different color, but only, when they'll appear as single ones; in construction like 200-300 second number is not colored as first one.

Most of these styles were working OK or nearly OK in original code, you forked. You wrote, that you fixed it, but it seems that it the very same time, you've removed many features from original code.

Why don't use "Menu Bar -> Language -> Define your language"

Hey There:

I know that just coping the "userDefineLang.xml" to the root flower of notepad plus plus is fine.

But that needs you have administrator permission.

I found another way to use your markdown for notepad++

click Language of menu bar, and click Define your language, then Import button, open the XML file.

1

Then, select the Markdown of User language : at the top of User Defined Language v2.1.x.xx. If need, click Rename button, close the window.

2

and then restart notepad++, Markdown works.

Any way to keep HTML and CSS highlighting?

I use CSS quite a bit, to tweak elements I have given an ID and full support for this is baked into standard Markdown when it appears on a new line with a blank line separating it from the markdown. It would be nice if we could keep that highlighting when a line starts with < or is contained between tags (such as between <Style> and </Style>)

Double tick code segment's not highlighted

If your code will have a tick in it, you can surround it with double tick as valid, basic Markdown, this breaks highlighting.

An example of a non-escaped ` in a code block working just fine because this is in double ticks

Background Color is still white

Is there something I need to do to make the background use the theme color? Currently using obsidian, but this is a problem in all the themes.

image

[Request] One of these guys for the twilight theme

Yeap, feeling like a beggar. That being said, youre about the only solution in town for this longstanding issue with the default markdown lang.

worst part is, for portable users at least (not sure if it affects installed) each time you update youre stuck managing that file or you end up A) overwritten or B) with two markdown lang's.

Black background with black theme

Hello,
I tried classic and modern build to add black theme but I have black background only where there is text.
Is there a specific setting to do more ?
Regards

Fail to persist imports

Not sure if this is a Notepad++ or a Markdown++ issue, but here it goes:

I can successfully import Markdown++ syntax highlighter, it is listed in the combo box of the UDL dialog. However, it is not persisted nor listed among the language menu; thus I cannot apply it and when I restart Notepad++ it has disappeared.

Workaround for me consists in pasting the XML in
%APPDATA%\Notepad++\userDefineLangs
(in my case %APPDATA% = C:\Users\samuelm\AppData\Roaming\ )

Notepad++ v7.6.6 (32-bit)
Build time : Apr 3 2019 - 23:49:50
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExport.dll

Markdown titles with #, only at beginning of line (optionally with whitespace)?

Is there a possibility in UDL, specifically for markdown, to only style lines that begin with the character # ?

My current problem is that I use the character # inside text and it styles the rest of the line as a title instead of normal text.

Would be an easy regexp, like ^\s# or similar, but I don't think you can use regexp as operator.

For the moment my workaround is setting only the biggest title with single # as "line comment" with "Force at beginning of line".
Might want to include that in the built-in markdown udl here maybe too?

*** and some useful link protocols missing

Thanks for giving us some highlighting code that works better than Thom Smits’ for Markdown. As an improvement, I’d like to see the following added, if anyhow feasible:

  • Support for _bolditalics_ and _bolditalics_
  • More useful link protocols like ftp:, mailto:, callto: and tel:

I have sent you the version I adapted for myself via email. Feel free to use it however you like.

NPM fails

Good morning,

Not an issue (I think) but just a note that if like myself if you already have a custom language defined (mine was TypeScript) then npm package fails. Only way to install it to get source and then go to

Language -> User Defined Language -> Define your language...

Then import the udl of your choice. Then it works and shows your chosen md themed language.

image

Kind Regards.

Remove?

I imported the XML and I now have a user defined 'Markdown' in the Language tab. The problem is that the colors are all messed up. I think I need the 'default' as the Zen shows highlight for each line and then reverts back to the highlightling that is default (white background). Anyway it is very hard to look at. What I would like to know is how do I remove the import and replace it with the 'default'.

Thank you.

functionList.xml for markdown files

This is a feature request. It would be useful if the functionList.xml is created for markdown files. If headings is regarded as functions then it would be easy to navigate between them.

Multiple spaces at end of line should be highlighted

A line ending with two or more spaces is a line break in markdown, so this should be made visible in some way.

I would suggest changing the background color for any number of spaces that come directly before the line ending.

Does it support table?

I wrote following content, and there was no table represent. Have I done something wrong or it just doesn't support that function?

one two three
1 2 3

Use transparent text background

Instead of having a language description for each theme, I have created only a "dark" and a "light" language files and set the text background to transparent. I suggest you to do the same, it could be far more handy.
How to use transparent background: Banane9/notepadplusplus-twig#14 (comment)
(colorStyle="1" in the UDL file)

Strikethrough does not work

Surrounding text with tildes should strike out the text. This is not happening, and it is also not highlighted like other syntax.

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.