Previewing Markdown files...!??

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Previewing Markdown files...!??

Post 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
---
Wolfgang

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Previewing Markdown files...!??

Post 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...
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Previewing Markdown files...!??

Post 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.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Re: Previewing Markdown files...!??

Post 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
:eh:
28-06-_2022_10-21-52.jpg
28-06-_2022_10-21-52.jpg (89.71 KiB) Viewed 1201 times
---
Wolfgang

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Previewing Markdown files...!??

Post 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?
One of my scripts helped you out? Please donate via Paypal

lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Re: Previewing Markdown files...!??

Post by lad12 »

Ah OK...
First, thanks for the link to the icon source.
Second: Yes, a doubleclick DOES work fine... 8)
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?
---
Wolfgang

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Previewing Markdown files...!??

Post by admin »

What do you expect from the markdown preview? Got a screenshot?

lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Re: Previewing Markdown files...!??

Post by lad12 »

28-06-_2022_13-42-18.jpg
28-06-_2022_13-42-18.jpg (191.41 KiB) Viewed 1178 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...
---
Wolfgang

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Previewing Markdown files...!??

Post by highend »

For the preview panel you'd need a preview handler for markdown...
One of my scripts helped you out? Please donate via Paypal

lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Re: Previewing Markdown files...!??

Post by lad12 »

OK. And what does this mean? Is there such a preview handler available in XYplorer?
---
Wolfgang

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Previewing Markdown files...!??

Post by admin »

Do you see such a preview in File Explorer?

lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Re: Previewing Markdown files...!??

Post 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... 8)
---
Wolfgang

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Previewing Markdown files...!??

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

lad12
Posts: 12
Joined: 14 Jun 2015 09:42

Re: Previewing Markdown files...!??

Post 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
---
Wolfgang

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Previewing Markdown files...!??

Post 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
Screenshot - 28.06.2022 , 14_36_26.png (106.94 KiB) Viewed 1167 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Post Reply