My PyCharm is not color-coding .js-files


I've searched the forums but have not seen anyone with the same problem. My collegue does not have this problem.

I'm running PyCharm 2.5.1 on Mac OS X 10.7.4

"Preferences -> Code Style -> JavaScript -> Tabs and indents/Spaces/Wrapping/Blank Lines"  shows the example code as colored.

"Preferences -> Code Style -> JavaScript -> Other"  does not

"Preferences -> Editor -> Colors & Fonts -> Javascript" shows the example code as colored.

I'm guessing it's something simple I'm overlooking, and it's driving me nuts.

Comment actions Permalink

Hi Fredrik,

1) To start -- please check that *.js pattern is registered as JavaScript file in Settings | File Types

2) Also -- please check if it happens to this file only or to any JS file. If it affects only certain files, the please check patterns assigned to Settings | File Types | Text file

3) Make sure that JavaScript plugin is enabled in Settings | Plugins

Otherwise -- please provide a screenshot with such problematic file (whole IDE, not just code; at very least I need to see what icons are assigned to that file).

Comment actions Permalink

Thanks Andriy! The problem was that .js was assigned to Text Files and not Javascript files.


Please sign in to leave a comment.