Sublime Forum

Specific syntax for .js files per project

#1

I need to use JSX syntax highlighting for .js files in one of my projects. Sublime’s View > Syntax > Open all with current extension as > JSX will make all .js files to use JSX syntax highlighting across all projects, whereas I need it only in one specific project. Is there a way to set JSX syntax highlighting for .js files for one specific project?

I’m aware of the separate package allowing to set specific syntaxes per project, but I’d like to use that package.

0 Likes

#2

Perhaps this http://facelessuser.github.io/ApplySyntax/usage/#project-specific-rules ? There is also a feature request to add this natively in Sublime https://github.com/sublimehq/sublime_text/issues/3815.

0 Likes