edditoria / markdown-plus-plus Goto Github PK
View Code? Open in Web Editor NEWMarkdown syntax highlighting for Notepad++, by customized UDL file (user defined language)
License: MIT License
Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)
License: MIT License
Surrounding text with tildes should strike out the text. This is not happening, and it is also not highlighted like other syntax.
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.
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.
With the default theme,
* bullet
* list
is shown in italics instead of:
I didn't try other styles.
Thank You for the good work!
Would be awesome with Dracula theme support as well. :)
The easiest way would probably be to reuse one of the dark ones you already have, just change the background color to what Dracula uses, 282A36
.
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
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
I was searching a way to include function list management for markdown files. By now I found only this on reddit, but wasn't able to use it...
I'll still try, anyway, if you have any clues... thank you!
I've installed /userDefineLang.xml
for default_theme
in my Notepad++ 6.5.1 and noticed following:
**an exact**
only **an
part is bold,>
) marked in different font, while should have entire blockquoted text printed in different style,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.
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).
I'm using Notepad++ v7.5.8 and markdown-plus-plus 81a86b4.
this is bold text
does not work, it only makes the word "this" bold instead of "this is bold"
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):
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!
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
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.
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)
follows a proposal to identify the header file when using markdown to Jekyll or GitBook. I also added the tags $$ for use with MathJax and Katex.
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?
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:
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.
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?
.
The documentation says:
cd %AppData%\Notepad++\userDefineLangs
But it's:
cd %AppData%\Roaming\Notepad++\userDefineLangs
------->-------->^^^^^
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.
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:
#
styled headings separated by a single newline.file.md
.- [ ] 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.
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.
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.
and then restart notepad++, Markdown works.
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
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.
Kind Regards.
*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.[text](http://example.com/document.html#some_anchor)
then the whole line, starting at the the #
character, will appear in bright orange!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.
Is there any plans to distribute the thing as a nnp plugin?
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<!-- 04--></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">@ < > \< \> \\ \` \* \_ \{ \} \[ \] \( \) \# \+ \- \. \! \~ :|: |: :| | \|</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>
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>
)
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
please provide such a function which support code block or chapter and section folding, that would helps a lot...
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:
I have sent you the version I adapted for myself via email. Feel free to use it however you like.
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.
Can you add support for Material Theme?
Thanks'
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 |
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!
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.
Hi i would like to set a background color for color blocks like
this is code block
Is this possible?
Thanks ~
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.
*Testing **Bold** in Itlaic* doesn't work.
However
**Testing *Italic* inside Bold** does work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.