2

I can't find JavaScript

I was trying to add JavaScript syntax and I can't find it.

4
  • 1
    What version are you running? I have version 3 and it came with a Javascript syntax highlighter. Commented Dec 10, 2016 at 14:34
  • I am using version Build 3126 Commented Dec 10, 2016 at 14:37
  • 1
    I'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. Commented Dec 10, 2016 at 14:45
  • @mohamedali if you're using Sublime Text 3, then use the correct tag on your question. Commented Dec 11, 2016 at 1:10

2 Answers 2

5

Go to Sublime Text -> Preferences -> Settings and then in the right panel (Preferences.sublime-settings-settings -- User) remove "Javascript" from the "ignored_packages".

Sign up to request clarification or add additional context in comments.

Comments

2

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

Actually, the default JS syntax has been significantly improved. See github.com/sublimehq/Packages.
I hope default JS syntax supports JSX soon

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.