random recognition of javascript files?
Posted: Thu Aug 29, 2013 2:44 am
Hi Eran,
It seems that CL recognizes javascript inconsistently, i.e. sometimes syntax highlighting works perfectly; at others it colors blocks of lines seemingly randomly.
The attached file is part of a C++ CL project; the js file gets fed to a 3rd-party application after my app launches, so it's really a resource file as far as CL is concerned. The javascript code isn't pretty, mainly because I'm a Lua-head and hence not exactly a javascript fan, but AFAIK it's valid syntax.
I know CL makes no promises outside C/C++ files (doesn't claim to be a generic editor supporting other languages) but am wondering what affects js recognition. It's the only js file in my CL project and I edit it pretty rarely; there seems to be no relationship between the js file's content and it being recognized, but I could be wrong.
Is there a log that could give me a clue to either enable or disable syntax coloring consistently? If there isn't and/or my question falls outside CL's scope I can configure CL to open it with an external editor like Geany but it'd be nice if I could stay within CL.
thx & cheers!
-- p
It seems that CL recognizes javascript inconsistently, i.e. sometimes syntax highlighting works perfectly; at others it colors blocks of lines seemingly randomly.
The attached file is part of a C++ CL project; the js file gets fed to a 3rd-party application after my app launches, so it's really a resource file as far as CL is concerned. The javascript code isn't pretty, mainly because I'm a Lua-head and hence not exactly a javascript fan, but AFAIK it's valid syntax.
I know CL makes no promises outside C/C++ files (doesn't claim to be a generic editor supporting other languages) but am wondering what affects js recognition. It's the only js file in my CL project and I edit it pretty rarely; there seems to be no relationship between the js file's content and it being recognized, but I could be wrong.
Is there a log that could give me a clue to either enable or disable syntax coloring consistently? If there isn't and/or my question falls outside CL's scope I can configure CL to open it with an external editor like Geany but it'd be nice if I could stay within CL.
thx & cheers!
-- p