[TxMt] Re: Different Themes based on file type

Umberto Cerrato umbertocerrato at outlook.it
Mon Aug 26 10:13:35 UTC 2019


PS:

This seems to work too...

[ 'source.*{c, c++, python}' ]
tabSize          = 4
theme            = 71D40D9D-AE48-11D9-920A-000D93589AF6

Il giorno 26 ago 2019, alle ore 11:56, Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>> ha scritto:

Hi,

Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.

About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.

Thanks

U



Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org<mailto:mailinglist at textmate.org>> ha scritto:

On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:

I found a solution.

[ *{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6

The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).

So instead you should want to use:

[ *.{c,cpp} ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:

[ 'source.c, source.c++' ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate



Inizio messaggio inoltrato:


Da: Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>>

Oggetto: [TxMt] Re: Different Themes based on file type

Data: 26 agosto 2019 11:56:47 CEST

A: "[textmate]" <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>

Rispondi a: TextMate users <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>


Hi,

Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.

About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.

Thanks

U



Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org<mailto:mailinglist at textmate.org>> ha scritto:

On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:

I found a solution.

[ *{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6

The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).

So instead you should want to use:

[ *.{c,cpp} ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:

[ 'source.c, source.c++' ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


Inizio messaggio inoltrato:


Da: Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>>

Oggetto: [TxMt] Re: Different Themes based on file type

Data: 26 agosto 2019 11:56:47 CEST

A: "[textmate]" <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>

Rispondi a: TextMate users <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>


Hi,

Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.

About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.

Thanks

U



Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org<mailto:mailinglist at textmate.org>> ha scritto:

On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:

I found a solution.

[ *{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6

The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).

So instead you should want to use:

[ *.{c,cpp} ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:

[ 'source.c, source.c++' ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


Inizio messaggio inoltrato:


Da: Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>>

Oggetto: [TxMt] Re: Different Themes based on file type

Data: 26 agosto 2019 11:56:47 CEST

A: "[textmate]" <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>

Rispondi a: TextMate users <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>


Hi,

Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.

About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.

Thanks

U



Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org<mailto:mailinglist at textmate.org>> ha scritto:

On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:

I found a solution.

[ *{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6

The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).

So instead you should want to use:

[ *.{c,cpp} ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:

[ 'source.c, source.c++' ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


Inizio messaggio inoltrato:


Da: Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>>

Oggetto: [TxMt] Re: Different Themes based on file type

Data: 26 agosto 2019 11:56:47 CEST

A: "[textmate]" <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>

Rispondi a: TextMate users <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>


Hi,

Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.

About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.

Thanks

U



Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org<mailto:mailinglist at textmate.org>> ha scritto:

On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:

I found a solution.

[ *{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6

The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).

So instead you should want to use:

[ *.{c,cpp} ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:

[ 'source.c, source.c++' ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


Inizio messaggio inoltrato:


Da: Umberto Cerrato <umbertocerrato at outlook.it<mailto:umbertocerrato at outlook.it>>

Oggetto: [TxMt] Re: Different Themes based on file type

Data: 26 agosto 2019 11:56:47 CEST

A: "[textmate]" <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>

Rispondi a: TextMate users <textmate at lists.macromates.com<mailto:textmate at lists.macromates.com>>


Hi,

Yeah I knew that and in my properties file I wrote like you did. I already sent the mail then.
Anyway thank you.

About the source, I didn’t know that! (About it can match the language also if the extension is different)
And I didn’t know you can list them all together with quotes neither.

Thanks

U



Il giorno 26 ago 2019, alle ore 10:01, Allan Odgaard <mailinglist at textmate.org<mailto:mailinglist at textmate.org>> ha scritto:

On 23 Aug 2019, at 16:14, Umberto Cerrato wrote:

I found a solution.

[ *{c,cpp} ]
tabSize = 4
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6

The thing in the square brackets is a file system glob, which is what you currently use, but the one above also match files like fooc and foocpp (as there is no dot in the glob).

So instead you should want to use:

[ *.{c,cpp} ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

As an alternative to a file system glob, it is possible to use a “scope selector” which would be source.c and source.c++, for example:

[ 'source.c, source.c++' ]
tabSize = 4
theme   = 71D40D9D-AE48-11D9-920A-000D93589AF6

The advantage with this is that it will target all C and C++ files, even if they do not have a .c or .cpp extension.


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate


_______________________________________________
TextMate mailing list
TextMate at lists.macromates.com<mailto:TextMate at lists.macromates.com>
https://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20190826/f92a5a23/attachment-0001.html>


More information about the TextMate mailing list