math2001 / MarkdownLivePreview

A Sublime Text 3 plugin to preview your markdown as you type
https://math2001.github.io/MarkdownLivePreview
MIT License
304 stars 37 forks source link

use with other syntaxes other than .md #88

Closed michapixel closed 4 years ago

michapixel commented 5 years ago

I used this (as a hack) for renderring .tpl files (simple html in my case) for some reason. And it works, partly. But i have to switch highlighting to MarkDownLive... once in the source file to make alt+m work. And secondly for the then opened file + preview. But i don't think this coulkd be done easyer, does it?

math2001 commented 4 years ago

But i don't think this coulkd be done easyer, does it?

We could manually check for the file extension, but this wouldn't be correct since this is the syntax's file/user setting's job, not ours. What makes sense is for us to check that the syntax file is markdown-like.

One thing you could do is set the default syntax for .tpl files to markdown (click on the bottom right, and then at the top Open all current extension as and then markdown)