Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JS correcting syntax in Sublime Text 3

Im new to to Sublime Text 3. I used to use Netbeans which had a great syntax correcting system for JavaScript and PHP. So far, Sublime has great features. Its fast and beautiful, but it does not have syntax correcting errors when I create JS files. Is it a possibility to get this working? I read a bit on "SublimeLinter" but when I installed it, it seems to not work correctly. Can anyone help?

like image 770
CodeGodie Avatar asked Apr 26 '26 03:04

CodeGodie


2 Answers

Have you try to install SublimeLinter for Sublime Text 3?

(I don't think this package is directly available in the Package control plugin, so you have to dowload the .zip and extract it in your Sublime Text 3/Packages folder)

[Edit:]Check: "If you plan to edit files that use a JavaScript-based linter (JavaScript, CSS), your system must have a JavaScript engine installed. Mac OS X comes with a preinstalled JavaScript engine called JavaScriptCore, which is used if Node.js is not installed. On Windows, you must install the JavaScript engine Node.js, which can be downloaded from the Node.js site."

like image 181
BeauCielBleu Avatar answered Apr 28 '26 18:04

BeauCielBleu


Sublime Linter 3 is the way I've found useful so far.

  • To use it, first you must install node.js on your system.
  • Then, using package manager find and install Sublime Linter and Sublime Linter-jshint, quit from Sublime Text.
  • Type npm install -g jshint onto your terminal, open Sublime Text.
like image 38
snr Avatar answered Apr 28 '26 17:04

snr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!