I was trying to add JavaScript syntax and I can't find it.
-
1What version are you running? I have version 3 and it came with a Javascript syntax highlighter.Charlie Dalsass– Charlie Dalsass2016-12-10 14:34:01 +00:00Commented Dec 10, 2016 at 14:34
-
I am using version Build 3126salmaan– salmaan2016-12-10 14:37:42 +00:00Commented Dec 10, 2016 at 14:37
-
1I'm on same version. Packages installed HTMLBeatify, JSHint, PackageControl, StandardFormat, Sublime-Linter, Sublime-Linter-jshint, Sublime-Linter-phpcs, SublimeLinter-phplint. I'm quite sure I never had to install a syntax highlighter for Javascript. I am on OSX.Charlie Dalsass– Charlie Dalsass2016-12-10 14:45:19 +00:00Commented Dec 10, 2016 at 14:45
-
@mohamedali if you're using Sublime Text 3, then use the correct tag on your question.MattDMo– MattDMo2016-12-11 01:10:41 +00:00Commented Dec 11, 2016 at 1:10
Add a comment
|
2 Answers
This version of Sublime does include a default Syntax viewer via a package. Verify that the file:
./Contents/MacOS/Packages/JavaScript.sublime-package
exists within your Sublime text install. (The above is for OSX. There is a similar path on Windows). If the file is missing, you may have to reinstall or find the package on the Internet.
A simple work-around would be to install a package such as https://packagecontrol.io/packages/JavaScript%20Ultimate. This has an improved syntax highlighter over the standard syntax highlighter.
2 Comments
MattDMo
Actually, the default JS syntax has been significantly improved. See github.com/sublimehq/Packages.
elquimista
I hope default JS syntax supports JSX soon
