-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Editing .md files in dark mode #10593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Those Markdown settings are actually "User Defined Languages" created with Edditoria: https://github.com/Edditoria/markdown-plus-plus. You'll need to go to that link and follow the instructions.
Copy the XML file of whatever theme you're using (looks look Obsidian?) into the userDefineLangs folder, close and reopen N++, and it should be there. That link also tells you how to create custom MD files for your own custom themes. Upon extracting the .tar.gz (or .zip): In your C Drive go to Users >> [your username] >> Application Data >> Notepad++ >>> userDefineLangs and copy that file. |
I want to thank you for the time and effort spent in replying to me. I see the markdown support is a complete side project. Indeed it is Obsidian. Well spotted. 😀 I copied Spontaneously I would have thought the most optimal implementation would be to add it as a Language like any other languages built in. Yeah, markdown is not a language, but seeing YAML in the list makes me think why not? But then I am a web developer and cpp is just not my thing. Maybe @Edditoria have some good input on this? |
You're not alone; to quote from this related thread1:
While N++ could just as well use Scintilla's Markdown lexer (the way Geany does), I would say you're better off using @Edditoria's implementation. The Scintilla version is kind of a neglected, bit-rotten, legacy module (and @donho already knows this: #7792). UDL's are just much quicker to develop and update than lexer libraries. Footnotes |
Not a problem. I think it would be best to include all the markdown themes in the software by default, then have one language option (under M): Markdown (or "MD") and then have the program automatically be able to recognize which theme the user is using and then apply the Markdown language file accordingly. But I don't have any idea how to do that. |
@timint This is possible with the colorStyle attribute
I think the WordStyles of markdown should use colorStyle="0" for DEFAULT and for most other colorStyle="1". |
This comment has been minimized.
This comment has been minimized.
@CennoxX Didn't see that comment. (just hid my comment as it's unhelpful.) Yeah, I just tried that xml on all the themes and it works perfectly for all of them. We should probably get this in a pull request. Can just go to PowerEditor / bin / userDefineLangs (https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/PowerEditor/bin/userDefineLangs) and edit the contents of that folder. (I'll leave that for you, since you found the solution. Or, if you don't mind me making the request, I'll make sure to credit you) |
I made a pull request with a single udl file that should work with all notepad++ themes - that way, we won't need multiple Markdown options; the user should just be able to select "Markdown" and it work with whatever theme they want, whether custom or one of the default. |
Editing .md files in dark mode is a challenge. Maybe someone has a fix for that?
I thought I would bring this up as it's been this way for many versions now.
The text was updated successfully, but these errors were encountered: