Sublime Forum

Custom syntax and file_extension match query

#1

Hello,

I’m currently working on improving a Syntax and looking for confirmation on whether the goal can be achieve or not.

I have the following format to match different file types and have the syntax applied automatically (this works fine)

file_extensions:

  • cfg
  • txt
  • gzo
  • log

The problem arrives, when dealing with files with the format name.log.1, name.log.2 … etc).

My questions is… is there a way to include all these files into the syntax scope to get applied, instead of simply including log.1, log.2… and so on to the list of the file_extension ?

Thanks in advance!

0 Likes

#2

Not natively.

This would require plugins like ApplySyntax or AutoSetSyntax.

0 Likes