Add support for .do (Stata)
norrissam opened this issue · comments
Hi and thanks for this great plugin. I was wondering if it would be possible to support .do files (Stata) even just as plaintext. Thanks!
Yeah, .do files and .ado files. Thanks!
No worry, StataCorp will solve this issue
Ok, so I suspend the implementation of this language.
Ok, so I suspend the implementation of this language.
But the StataCorp version doesn't have syntax, just plain text. If you can make a preview with syntax, that would be even better:) Thank you!
No, Highlight
the rendering engine do not handle the Stata syntax, so I can only show the code as plain text (with line numbers if you want).
If it's easy to do I'd still appreciate adding support for .do and .ado files - there are lots of old versions of Stata out there that this update won't fix.
@sbarex I'm having the same issue. I wonder if you could consider letting the plugin render unsupported file format just as a plain text. I read the doc, and it seems like this is only doable when a file does not an extension now. Or maybe link a file format to another and allow it to render an unknown format as a known one? For example, Stata also has a format .stjson, and it is really just a json file, and they like to make it unique somehow.
Added support as plain text on release 2.1.18.
@sbarex thank you for the fix. Am I missing something here? I saw there is already 2.1.18 on brew, but not when you click check for updates
now the automatic update should work
I have upgraded to version 2.1.18 :
however, preview function still not work for Stata do file :
have I missed something important?
It is possible that the format has been registered by Stata with a particular UTI. From the inquiry window it is possible to see which UTI is associated with the extension.
I do not see the full uti in the screenshot
Implemented on release 2.1.19 (68).