Page 1 of 2
Previewing Markdown files...!??
Posted: 28 Jun 2022 08:49
by lad12
Hello all,
I would like to be able to preview Markdown files from within XYplorer. I have found this:
Title: marked - a MarkDown viewer [beta]
Description: Preview Markdown (.md) files
Link: viewtopic.php?f=7&t=15785
Author: SammaySarkar
Labels: Markdown Preview
...but I am not able to figure out how to use it.
Can someone please shed some light on this for me? Thanks
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 09:18
by highend
You download the marked.xys and put it into the XYplorer script folder
E.g. open the folder via (from the address bar): goto <xyscripts>;
Menu - Tools - Customize File Associations...
and there you add (in first place):
"Marked|<xyicons>\ext\ext_md.ico" md;markdown>::load "marked.xys";
You need to adapt the icon path...
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 09:33
by Horst
Microsoft Power Toys brings a good Markdown viewer.
Unfortunately it looks XY doesn't handle it.
It shows a black screen or gets an unhandled exception.
Other tools like Explorer, Everything and Total Commander use it.
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 10:23
by lad12
highend wrote: ↑28 Jun 2022 09:18
You download the marked.xys and put it into the XYplorer script folder
E.g. open the folder via (from the address bar):
goto <xyscripts>;
Menu - Tools - Customize File Associations...
and there you add (in first place):
"Marked|<xyicons>\ext\ext_md.ico" md;markdown>::load "marked.xys";
You need to adapt the icon path...
Thanks a lot for this.
Still not quite sure...
- I did download and place the file into the scripts folder
- I did adjust the file associations
- I did find an "icon" folder in the xyplorer directory (in appdata\roaming) - but this one is empty
- I do not have a file named "ext_md.ico" on my PC
- would I have to "initialize" things somehow, because right now MD-files still appear just as text

- 28-06-_2022_10-21-52.jpg (89.71 KiB) Viewed 2546 times
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 10:28
by highend
The icon folder is by default empty. Just place your own icons there.
E.g. get this one as you like:
https://icons8.de/icon/45065/markdown
because right now MD-files still appear just as text
If you double click them?
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 12:19
by lad12
Ah OK...
First, thanks for the link to the icon source.
Second: Yes, a doubleclick DOES work fine...
My intention was - and still is - to have a solution that works with the preview panels, like for images or html or text files. Doubleclicking the file would normally open my markdown editor. That's OK, but it is not a "quick preview".
Ain't there a chance in XYplorer right now?
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 13:05
by admin
What do you expect from the markdown preview? Got a screenshot?
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 13:49
by lad12

- 28-06-_2022_13-42-18.jpg (191.41 KiB) Viewed 2523 times
Please have a look - here we go.
I would like to have a live preview in the preview panel. In order to be able to flip through a folder full of markdown files and see the contents of each file without having to open them. Like images or text files...
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 13:53
by highend
For the preview panel you'd need a preview handler for markdown...
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 13:58
by lad12
OK. And what does this mean? Is there such a preview handler available in XYplorer?
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 14:05
by admin
Do you see such a preview in File Explorer?
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 14:15
by lad12
No, I do not...
But I am using XYplorer because it is able to do many things I cannot do with File Explorer. This is why I am asking if it is possible to preview Markdown files... If there is no way, well...

Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 14:22
by admin
If File Explorer had been able then it would have been just a bitness matter, easy to solve. But since it's not, you really need to find a preview handler for Markdown files, if such thing exists. XYplorer cannot do it natively.
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 14:30
by lad12
Thanks for the clear answer.
would there be a chance to integrate a tool like
Quicklook into XYplorer?
https://apps.microsoft.com/store/detail ... n-us&gl=US
This tools lets me view MD-files in File Explorer by using the spacebar to trigger the preview
Re: Previewing Markdown files...!??
Posted: 28 Jun 2022 14:37
by Horst
admin wrote: ↑28 Jun 2022 14:05
Do you see such a preview in File Explorer?
Yes, I see previews in Explorer and other tools
if the Microsoft Power Toys are installed.

- Screenshot - 28.06.2022 , 14_36_26.png (106.94 KiB) Viewed 2512 times