This is a confirmation about the problem. It happened for me as well. The problem is identical to that mentioned in the post on Ubuntu Forums.
To reiterate, javascript files ending in '.js' are detected as C source code files. The mime type in nautilus is 'application/javascript' and in gedit it is 'C source code (text/x-csrc)'. The beginning of the file starts with a comment of the form '/* ... */' and a line of the form 'function f(var) {'. Removing the comments causes the mime type to change to 'MATLAB script/function (text/x-matlab)'. -- GEdit opens java files with C source highlighting https://bugs.launchpad.net/bugs/64869 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs