Edditoria / markdown-plus-plus

Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)
MIT License
1.5k stars 277 forks source link

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

Closed kevinwkc closed 4 years ago

kevinwkc commented 5 years ago

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

Edditoria commented 5 years ago

It's weird. I tried to download v7.5.9 32-bit and import the file userDefinedLang-markdown.solarized-light.modern.xml. It works.

The direct link for the XML file is: here

Open the file to make sure it is in XML format. And try again?

fdrobidoux commented 4 years ago

While this is an old issue, I fear this will happen to a bunch of other people, so here's the cause and the solution :

Turns out, saving the XML file using CTRL+S on your browser while viewing the raw XML file using the links provided in the Readme will save a CDATA of the HTML-encoded xml file, and so they won't be able to be read by Notepad++.

The solution is to copy-paste the xml, or clone/download the repo in a zip, and copy the userDefinedLang XML file you want and paste it in your %APPDATA%\Notepad++\userDefineLangs folder.

Moral of the story : Don't save files using CTRL+S when viewing raw files directly from GitHub on your browser.

Edditoria commented 4 years ago

Have re-written README.md that suggest downloading from latest release page.

Thankfully Notepad++ , from v7.6.4 , delegates a folder <userDefineLangs\> to collect your favorite UDLs.

I would consider this issue solved. Thanks for rising this question! 🍕