I have a Coffeescript project that I'd like to edit using Eclipse.
Many people suggested that I should install the Nodeclipse Coffeescript Viewer module in order to have colors and highlights.
I did install the module but I'm still getting a plain black and white file.
What should I do?
Thanks!
PS : I have Eclipse Luna under Win7.
Seems like you have not installed well, reinstall
http://marketplace.eclipse.org/content/nodeclipse-coffeescript-viewer-editor-eclipse-431
You would get editor for .coffee files by default.
Also Nodeclipse EditBox helps a lot to see indentation
If this is not a new file, right-click on it and look in the "Open With..." menu. Eclipse will reopen the same editor you used the last time for a given file.
Related
The tutor of my video tutorial compiles javascript/react on save with his VS Code editor. Mine dont.
How can I config VS Code to do this?
Remark:
I find solution for typescript "Visual Studio Code - compile on save", but suggested solution does not work for me.
#added information:
the project is created with create.react-app. npm start opens chrome, and compilation errors are then shown in Chrome's DEV-Console, as noted by Shishani . My tutor has the code compiled on VS Code Terminal console. This offers a quick check of the code compilation before I go to webbrowser, to check for errors there, which seems to me much more intimidating with it's long callstacks.
If you create your React project with create-react-app, and then start it with npm start, it compiles automatically on save. Also, if it's not a React project, but just JS/HTML/CSS, you can open your project with the "Live Server" extension in VSCode, and it will update your page every time you save a file in your VSCode workspace.
You can even do like I do, and enable constant autosave, with the AutoSave: afterDelay setting in VSCode (if you dare), and then set the save delay to a super small number (mine is 2ms) so you don't even need to hit save anymore (go to File>Preferences>Settings>[Search "Auto Save"]).
If you have created react project using there official cli tool (create-react-app) then on saving js files it gets re-compile. This is because they are using webpack bundler behind the scene.
If you have created normal html or js files without any such cli tools then it won't work directly, You have to use some kind of bundler with dev-server support to do it.
Parcel! is a great bundler to use without configuration
I was trying to add JavaScript syntax and I can't find it.
Go to Sublime Text -> Preferences -> Settings and then in the right panel (Preferences.sublime-settings-settings -- User) remove "Javascript" from the "ignored_packages".
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.
I update my jquery.d.ts definition file from https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery/jquery.d.ts but it generate a lot of error if I open it inside WebStorm IDE.
I found on internet that may be WebStorm compiler couldn't be up-to-date so I went on "Preference"->"Languages&Framework"->"Javascript"->"Node.js and NPM" and I update the typescript package to 1.4.1 but nothing changes, as soon as I open jquery.d.ts file WebStorm highlight a lot of error on it.
I also added jquery-DefinivelyTyped as an external library with no changes. I noticed that if I open this definition file from the "External Libraries" folder inside the project it doesn't highlight any error but if I copy this one in my project folder the errors show up again.
Any suggestion will be really appriciated
Webstorm 9 and IntelliJ 14 syntax analysis do not support Typescript 1.4 new features syntax right now.
This is fixed in dev and should be available soon: check https://youtrack.jetbrains.com/issue/WEB-14151
(this does not prevent you from transpiling using 1.4.1 in any case)
EDIT
Available in Webstorm 10 EAP since yesterday: http://blog.jetbrains.com/webstorm/2015/02/webstorm-10-eap-140-2753/
I just installed netbeans 7.0.1 in ubuntu 12.04, and there NO JAVASCRIPT support whatsoever. I am not getting any errors, but my .js files just appear as regular text files with no syntax highlighting.
My situation is different from this post because when I go to Tools -> Options -> Misc -> Files, under "Associated File Type (MIME)" i don't have an option for "text/javascript".
Also in my previous installation of netbeans, I could right-click on the "Source Files" folder of my project, select New -> other and I could create a new .JS file like this. But now there is no option for .js files. Only PHP (since i installed the PHP plugin), XML, SQL, CSS and a handful of others.
Another thing, I often embed javascript in .php files. My embedded js just shows up as plain text, no syntax highlighting.
I also checked for additional plugins for JS, but nothing jumped out at me as being the solution. Does anyone know how I can enable the JS file recognition and syntax highlighting?
Thanks!
** UPDATE **
This installation is acting very weird (when editing text, pressing enter has no reaction, no line return, nothing) so I will try re-installing, will update with results.
** UPDATE 2 **
Installed 7.1 for linux from the netbeans website and everything is working well. It must have been a faulty installation from the Ubuntu software center.
I was using Netbeans 7.0.1 on Ubuntu 12.04 64-bit. Installing Netbeans 7.1.2 fixed my color/syntax problems.
For those who need to re-install, here is the download page: http://netbeans.org/downloads/index.html
Be sure to check Tools -> Options -> Misc -> Files to ensure that everything looks right.
P.S. #jeffery_the_wind Thank you for your update! This had been driving me crazy today, and I googled for hours and couldn't find the solution.
I use notepad++ for my JavaScript development now. I am wondering if anyone has successfully integrated jsDoc with notepad++ for easy code commenting.
I was usint Aptana earlier and it was already integrated in it as ScriptDoc I believe but Aptana grew out to be painfully slow.
It it is possible to get jsDoc to work using the NppExec plugin. The steps are pretty straightforward, and should be a lot more straightforward after you read this.
In NPP (I'm using v. 5.9.3) open the plugin manager
Install NppExec plugin. (Npp restarts, I believe)
Go to the NppExec menu under plugins, choose the "Execute" menu option. A tiny scripting window opens.
Enter the following NppExec scriptlet:
NPP_SAVE
cls
SET jsDocPath = e:\javascript\jsdoc
cmd /c if "$(EXT_PART)"==".js" echo "Running JSDoc" && $(jsDocPath)\jsDocMe.cmd $(jsDocPath) "$(FULL_CURRENT_PATH)" "$(CURRENT_DIRECTORY)\jsDoc"
NPP_CONSOLE 0
(the line beginning with cmd and the following line should all appear on one line...)
Explanation: The set command sets a variable for where your jsDoc path is.
The cmd line first checks to see if the currently open file has a .js extension, and if so
it calls a .cmd file called jsDocMe.cmd, text below, passing in the jsDocPath, the full path of the current file, and the directory of the current file. The use of these variables can be seen in the .cmd file. The text of the .cmd file is below, a simple set of batch commands that changes to the jsDoc directory, runs the jsrun.jar file, and sends output to a new jsDoc folder beneath the current working directory.
cd /D %1
java -jar jsrun.jar app\run.js -d=%3 -a -p -t=templates/jsdoc %2
%3\index.html
exit
Notepad++ uses Scintilla, which does not parse inside comments, so I doubt there would be any plugins doing this. (See the comments for this feature request.)
I've been using N++ for JS development for years now, and I'm pretty sure there is no way to get JSDoc going, unless you write your own plugin.
You should always be aware that N++ is not an IDE. I've tested several, and I've always come to the same conclusion as you:
N++ == slim && fast; IDE == feature rich && slow;
IMHO, the IDE with the very best JSDoc support is WebStorm (commercial product).