| View previous topic :: View next topic |
| Author |
Message |
starnernj
Joined: 18 Aug 2010 Posts: 2
|
Posted: Wed Aug 18, 2010 9:00 pm Post subject: javascript syntax highlighting 6.9 |
|
|
| I am having trouble figuring out how to highlight my javascript syntax in netbeans 6.9. it worked fine in 6.8. Even when I try to make a new file, a javascript option doesn't show. Any help would be greatly appreciated. Thanks. |
|
| Back to top |
|
 |
oc666
Joined: 19 Aug 2010 Posts: 4
|
Posted: Thu Aug 19, 2010 9:17 am Post subject: Re: javascript syntax highlighting 6.9 |
|
|
| starnernj wrote: | | I am having trouble figuring out how to highlight my javascript syntax in netbeans 6.9. it worked fine in 6.8. Even when I try to make a new file, a javascript option doesn't show. Any help would be greatly appreciated. Thanks. |
Just happened to me to when I update my netbeans to 6.9 (on ubuntu 10.10 alpha 3). To fix the problem I update all plug-ins and restart, then the highlight came back to Javascript.
Cheers  |
|
| Back to top |
|
 |
Filip Zamboj Posted via mailing list.
|
|
| Back to top |
|
 |
starnernj
Joined: 18 Aug 2010 Posts: 2
|
Posted: Wed Aug 25, 2010 1:32 am Post subject: ubuntu netbeans javascript syntax highlighting |
|
|
I updated all my plugins, and that allowed me to see that javascript was actually supported by netbeans, but it didn't actually highlight my syntax.
I ended up deleting my .js extensions on my javascript files, right clicked on them, and chose to open as a javascript file (which wasn't an option before I updated my plugins).
So problem solved! Thank you for your help! |
|
| Back to top |
|
 |
CGo
Joined: 29 Oct 2010 Posts: 2
|
Posted: Fri Oct 29, 2010 8:53 am Post subject: |
|
|
Same problem here after an update to Ubuntu 10.10/NetBeans 6.9.1
All plugins are updated, though Javascript is still not showing in the Code Formatting tab under Tools/Options, nor does it show up in the "Run As" dialog, and the code is not highlighted/assisted in .js files or any others.
Running standard PHP projects and with previous versions, this worked like a charm. |
|
| Back to top |
|
 |
CGo
Joined: 29 Oct 2010 Posts: 2
|
Posted: Fri Oct 29, 2010 8:58 am Post subject: |
|
|
| I am noticing this problem on every workstation where I've updated NetBeans by the way, it seems there's something wrong with the most recent version. |
|
| Back to top |
|
 |
markwhite
Joined: 01 Nov 2010 Posts: 1
|
Posted: Mon Nov 01, 2010 4:14 am Post subject: |
|
|
FWIW, on a fresh install of 10.10 and 6.9, I found the NetBeans Update Centre was not ticked under Tools|Plugins|Settings tab.
I tried an update first, and got the message that the IDE was up to date. After ticking this box, I got many updates, and my code formatting is back to how I expect. |
|
| Back to top |
|
 |
ballyboy
Joined: 10 Nov 2010 Posts: 1
|
Posted: Wed Nov 10, 2010 10:23 am Post subject: |
|
|
| Thanks a tonne for that markwhite!.. Was tired getting to make javascript work on netbeans.. checked the netbeans update centre in settings, updated everything,.. now works great.. |
|
| Back to top |
|
 |
leiric
Joined: 27 Jan 2011 Posts: 2
|
Posted: Thu Jan 27, 2011 11:21 pm Post subject: |
|
|
|
|
| Back to top |
|
 |
leiric
Joined: 27 Jan 2011 Posts: 2
|
Posted: Thu Jan 27, 2011 11:22 pm Post subject: |
|
|
I had the same problem with JavaScript syntax highlighting in NetBeans 6.9 running under Linux Mint (Ubuntu). It didn't even recognize .js files, and the JavaScript file type was missing from the 'Open as...' dialog. I finally solved the problem by changing the 'NetBeans Beta' update center url from:
http://updates.netbeans.org/netbeans/updates/6.9/uc/final/beta/catalog.xml.gz
To this:
http://updates.netbeans.org/netbeans/updates/6.9/uc/final/stable/catalog.xml.gz
I have no idea why the beta repo was there instead of the stable, however this solution worked. I hope this will help someone, cheers! |
|
| Back to top |
|
 |
andForMore
Joined: 25 Jul 2009 Posts: 2
|
Posted: Tue Apr 05, 2011 8:51 am Post subject: How I fixed it |
|
|
I just did a fresh install of ubuntu 10.10 and installed netbeans from the software center and had the js issue. I also had to check the netbeans box in the settings to get updates. After isntalling all the updates JS files still did not work right. So, I went to tools->options->miscellaneous->files tab
Here I chose the JS file extension and manuall associated it with text/javascript and then everything worked. Hope this helps someone with my same issue. |
|
| Back to top |
|
 |
madtom1999
Joined: 02 Apr 2009 Posts: 5
|
Posted: Mon Dec 05, 2011 10:28 am Post subject: Thanks for that - reason for troubles |
|
|
Been puzzling over lack of JS highlighting for a while and finally decided to hunt for a solution.
I may be wrong but I'm on a variety of Ubuntu systems and it seems the standard install turns off the netbeans update platform - possibly they were thinking of sending plugins via the repository?
Will check ot their end. |
|
| Back to top |
|
 |
|