Hi,
Is it possible to create a tmLanguage file that doesnât show at the languages menu for sole purpose of being included in other tmLanguage files?
Thanks,
Joao
Hi,
Is it possible to create a tmLanguage file that doesnât show at the languages menu for sole purpose of being included in other tmLanguage files?
Thanks,
Joao
I havenât tested this, but couldnât you create a tmLanguage file and add it to the ignored packages list? It should still be include-able, no?
Actually I have tried that and the package is disabled even for includes
Thank you for your replies.
How about calling it .hidden-tmLanguage? Dunno if it would work the same as tmTheme but one can hopeâŚ
This is how tmTheme works:
github.com/maltize/sublime-text ⌠65144349d9
github.com/maltize/sublime-text ⌠a59e8c53e1
[quote=âbronsonâ]How about calling it .hidden-tmLanguage? Dunno if it would work the same as tmTheme but one can hopeâŚ
This is how tmTheme works:
github.com/maltize/sublime-text ⌠65144349d9
github.com/maltize/sublime-text ⌠a59e8c53e1[/quote]
Humm, how do I include other tmLanguage file by itâs file name, I thought it was only possible by the scopeName?
And with the extension of .hidden-tmLanguage, I doubt it would even be processed by sublimetext and itâs scope added!
Your example uses python and thereâs no python here in this, only tmLanguage files (XML) that include other tmLanguage files.
Thanks
Yeah, I think youâre right â it wonât work for tmLanguage. It was a longshot.
Time to file a feature request?
Maybe, I would definitely agree with such feature although I donât know if by adding such option inside the tmLanguage file, it would be feasible as it could break compatibility of the tmLanguage files with TextMate and theyâre supposed to be interchangeable!
One way I could see it happen, was by creating a small python plugin that would take a list of names from a json file and remove corresponding entries from the languages menu.
Just a thought!
I am pretty sure that this does work, using the â.hidden-tmLanguageâ. Take a look at âPackages/Default/Find Results.hidden-tmLanguageâ.
You then can not use the popup menu from STâs status bar to change the syntax to that file, instead youâd need to do that with a plugin or by hand in the console.
Edit: disregard this, I canât read.
You can make .tmLanguange files that wonât show up in the Syntax menu by changing the extension, but then they wonât be available for inclusion into other .tmLanguage files.
You are right, I just found it out while I tested its behaviour and coincidentally hid an included syntax def file.
Iâll support the feature request then, this could really be useful.
Could this be rectified, at least in ST3? It is a significant limitation when building non-trivial syntax highlighters.