Syntax color of php file

Answered

Hi,

For my python project i need to edit and change some php files.

By default, php file in pycharm don't have any color syntax so it is very unplaisant to work with.

Is there a way to activate syntax coloration of php file in pycharm (just the color, doesnt need anything else).

Thanks

2 comments
Comment actions Permalink

Hello,

A basic syntax highlighting for PHP files is available in PyCharm via 'PHP Files (syntax highlighting only)' file type (Settings/Editor/File Types/PHP Files (syntax highlighting only)). But it's indeed very basic - just some keywords/comments highlighting.
Also I can suggest searching for existing TextMate bundles for PHP files in the web, importing them and use for the .php syntax highlighting - see http://blog.jetbrains.com/phpstorm/2013/05/textmate-bundles-in-phpstorm/ and http://stackoverflow.com/a/16451778/2000323 for more info.

0
Comment actions Permalink

Thanks for the tips.

I try to use the php textmate bundle in pycharm but it doesn't works.

I clone the git repository of the bundle on my disk with success. I can import the bundle with pycharm (File / Settings / Editor / Textmate Bundles) but it doesn't appear on the File / Settings / File Types / recognized file types. There is no new php textmate bundles to assign .php files.

0

Please sign in to leave a comment.