This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Use following code: var cronJob = require('cron').CronJob; cronJob('0 0 */2 * * *', function(){ var atom = require((path.join(path.dirname(__filename), './server_ext/atom')).toString()+"/atom_module_ext.js"); atom.updateAllFeed(config.server.domain+":"+config.server.port); // TODO }); Variable cronJob is actually a function (I guess there's no way editor can find out this as it is Node.js specific and it may be a object variable as well). However the calling of cronJob() is not correctly colored (it's black instead of purple) Product Version: NetBeans IDE Dev (Build 2012-03-26_07-07-31 ) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17 System: Linux version 2.6.38-13-generic running on amd64; UTF-8; en_US (nb)
Seems to be properly colored in 7.3.