Keep in mind, what you're asking to do (I think) is essentially allowing html and hosted files to transcend the browser to open files in the os and launch a file with a given application, with whatever consequences there are in doing so.
Think about the security implications of this. Microsoft thought this would be the shiznit with ActiveX 20+ years ago, and then everyone exploited it to death to introduce drive-by infections for the next couple decades. Embed some obfuscated powershell (or whatever is currently in vogue) in an office file, download, launch, and voila! Exploit. This is still how most phishers and malwares get in via email or http links, thanks microsoft. Same with CD/Flash-based autorun - another very bad idea that presumes far too much trust in what it's executing.
This presumes the end-application is exploitable (which you just presume as course with microsoft), but these sorts of methods are almost always exploited despite the os, even linux likely. Why Java and Flash made such a great malware runtime engine for 25 years, not to mention windoze itself with IE/ActiveX.
Better off looking at using some sort of server-side html5 text editing application, ala google sheet or like, and keep it server-side vs. trying to bring it into local executable space on your os. Or as mentioned, just URI launch a local text-editor, and know you'll have to re-upload an updated version one way or another.
Maybe misinterpretation of what you're trying to achieve, but sounds dubiously bad (which I think we're all saying). As ET mentioned, maybe just being poorly described what you are trying to accomplish.
-mb