This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

dragontree
dragontree

October uses .htm files for twig files so its not possible to set the syntax highlighting based on the file extension.

Any ideas on how to configure Sublime so that it detects the twig files and sets the file "type" automatically?

dragontree
dragontree

There is an extension called ApplySyntax. Looking good with the following configuration:

"syntaxes": [
    {
        "syntax": "PHP-Twig/Syntaxes/HTML (Twig)",
        "extensions": [".htm"],
        "rules": [
            {"contains": "__SELF__"},
            {"contains": "{{.*}}"},
            {"contains": "{% for"},
            {"contains": "{% if"}
        ]
    }
]

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.