Netbeans 7.0.1 in Ubuntu has no javascript support? - javascript

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.

Related

Eclipse for PHP Developers 2020-06 - Is There Any Way to Show Javascript Task in Tasks View?

I'm using Eclipse IDE for PHP Developers Version 2020-06 (Includes Incubating Components) (4.16.0) on Windows 10 Home, 64-bit, installed using the Windows 64-bit installation file from https://www.eclipse.org/downloads/packages/installer.
Is there any way to have task tags (like TODO) in .js files show up in the Tasks view? In this version of Eclipse the task filter doesn't even list "JavaScript" as an option and there are no JavaScript settings in Preferences. Task tags work in .html, .css, and .php files but not in .js files.
UPDATE: I've switched to version 2020-12 (4.18.0) and JavaScript task tags are working by default in this version.
This worked for me (in Eclipse version 2020-09 (4.17.0)):
Go to Window->Preferences.
Go to Web->JavaScript
"Task Tags in JavaScript can be configured here" <- click this link
Check the "Enable searching for Task Tags" checkbox
Click Apply and Close

Unable to Run JavaScript in Atom with Script package

I am trying to run JavaScript code in Atom with Script package. It can run Python successfully, but with JS files it gives the following error message:
The system cannot find the file specified.
I had the same problem while analyzing some JavaScript code of an extension for Chrome.
Using: Windows 7 64Bit Atom:1.24.0 x64
Since I my coding Folder is somewhere else I copied the files in that folder. Let’s say:
C:\Users\USER\CodingStuff\
then it started working. I have also tried adding the extension file the Sources via:
1 - CTRL+SHIFT+I
2- Right click -> add folder to workspace
But that did not work.
Side note: node.js has to be installed on the system.
Hope it helps.
I know I am late, but if any other faces the same issue, my answer will be helpful.
Assumed that you want to run your javascript outside browser and you installed node.js.
There is a bug in "script" package of Atom. Check ur path of the script if there are spaces then this leads to the aforementioned error. Work around is remove spaces.
for ex:
E:\Java script\trial.js
change to:
E:\Javascript\trial.js

Coffeescript text highliting with Eclipse

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.

Eclipse does not support web projects or web file types after installing WTP. Am I installing it incorrectly?

I currently have the latest version of Eclipse (Juno) and I have installed ADT with no problem. I have moved on to a web based project and I require support for JavaScript and HTML etc. I installed WTP through the update manager and you can see that all of the required packages appear to be installed:
However, within Eclipse there is very little evidence that anything has been installed. I have read in this jsdt tutorial that I should be able to create web projects such as "Static Web Project" and have text editting support for HTML and JavaScript. However, I see no web project options, HTML or JavaScript file options, no perspective options for HTML or JavaScript, and no support for editing html/javascript files.
Here you can see an html file I attempted to create. Notice the lack of syntax colouring:
Here you can also see all the project creation options that are available to me:
So how should I have installed WTP? Should I not have installed it thought Eclipse's software manager? I would like to do this without having to re-install Eclipse if possible.
This problem seems to exclusively occur in Windows 7. I managed to successfully install the desired software by right clicking on the Eclipse icon, selecting "Run As Administrator" and then re-installing all packages. I did not have to do this in Windows Vista.
If you are experiencing this problem and you are using Windows then follow these steps.
Right click on the Eclipse icon and select Run As Administrator.
Once you have opened your Workspace go to Help -> Install New Software.
Any installed packages that you installed when you did not Run As Administrator should now not appear to be installed. So install them again.
Restart eclipse (normally if you wish) and your desired packages should be installed correctly.

How to create JavaScript projects in Netbeans 7?

I have the basic Java version of NetBeans installed, but I want to be able to create JavaScript/HTML projects with auto-completion and other IDE-supported functionality. I can't seem to find out what I need to install to do this. What do I need to do?
There is no dedicated Javascript project type in Netbeans 7. There are still various possibilities to work on HTML/JS files:
Add a JS/HTML file to any of the available projects, e.g. a PHP project.
Open the JS/HTML file directly without having a project by using
File/Open.
Define own project type. This is likely not so easy.
In any case you will be able to edit the file and utilize the IDE language features like autocompletion, etc. But you will not be able to run/debug the JS file. For debugging you will need to use the debuggers integrated with the browsers (Developer Tools in IE, Chrome; Firebug in Firefox, etc.)
You install the PHP plugin from the Plugin directory. This isn't explained anywhere that I can see, I just had to guess.
You can download the php bundle for netbeans here.You can also create xml,json,css,php pages with it.

Categories

Resources