[TxMt] Re: Make a Bundle available only for a programming language

Allan Odgaard mailinglist at textmate.org
Mon Oct 14 09:14:08 UTC 2019


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20191014/11487cc5/attachment.html>


More information about the TextMate mailing list