[TxMt] Re: Make a Bundle available only for a programming language
Umberto Cerrato
umbertocerrato at outlook.it
Mon Oct 14 09:40:19 UTC 2019
Oh man!! That’s neat!!
Thank you very much
> Il giorno 14 ott 2019, alle ore 11:14, Allan Odgaard <mailinglist at textmate.org> ha scritto:
>
> On 14 Oct 2019, at 10:55, Umberto Cerrato wrote:
>
> e.g. I want C/C++ files to open with this new theme. I can do it in the way you suggested me. And that’s good.
> But since this theme works well only with C and C++ files, I do not want it to be available/selectable/take effect if there is an opened file with a different extension than .c or .cpp etc.
>
> What you can do is open the .tmTheme file and insert this under the root <dict> element:
>
> <key>hideFromUser</key>
> <true/>
>
> This will cause the theme to be hidden from the View menu, though also for C/C++ files.
>
>
> _______________________________________________
> TextMate mailing list
> TextMate at lists.macromates.com
> https://lists.macromates.com/listinfo/textmate
More information about the TextMate
mailing list