I am new to javascript but I must say the leaning curve has been great with Sublime!!! With Node.js Asynchronous approach you see alot of functions in functions. Is there anyway to color code the main function and have a different color for the sub function’s? For a newbie it would be such a time saver.
Like this:
function sql_file(sql_file, cb) {
console.log(‘about to read file’);
var fileName = “./SQLs/” + sql_file;
fs.readFile(fileName, function (err, buffer) {
select = buffer;
console.log(select.toString());
if (err) return cb(err);
return cb(null, buffer.toString());
});
console.log(‘call to read file made (but not finished)’);
}
Javscript function in function color scheme
BobSpero
#1
0 Likes