Closed andry-tino closed 8 years ago
@aeschli fyi
Any progress on this guys? I'm working on a Standard-ML project in Code but it is terrible without syntax highlighting :(
You have to use
https://raw.githubusercontent.com/textmate/ocaml.tmbundle/master/Syntaxes/OCamllex.tmLanguage
instead of
https://github.com/textmate/ocaml.tmbundle/blob/master/Syntaxes/OCamllex.tmLanguage
.
That one is just a HTML page.
It works for that, now I get the same issue when trying https://github.com/textmate/standard-ml.tmbundle/blob/master/Syntaxes/CM.tmLanguage :(
I tried an equivalent address by using the pattern of the other URI you provided but there is no resource at that URL... So basically the tmLanguage
files provided in TextMate repo are not good?
https://github.com/textmate/standard-ml.tmbundle/blob/master/Syntaxes/CM.tmLanguage
is just a HTML page that shows an editor with the source code of the file. If you click on the 'raw' button, that brings you to the real URL of the content.
When you run the yo generator, you need to feed in the content URL. Or maybe better, save the content to a local file an run the generator on that.
Oh man, I get the error now... Feel so stupid... Thanks!
I tried installing Standard ML language syntax for extension both from
yo code
and manually (creating the folder inextensions
myself and addingpackage.json
andsyntaxes
and copying syntax files). I get:When I open code on a
.sml
file (I specified this extension).Using the extension tool
If I use
yo code
, I get the following:I filed this issue against TextMate but they replied that the grammar file is fine, so there must be something occurring in the extension manager in Code.