3
Good morning:
I’m starting to use Eclipse Ide (Mars) because it already has PHP 7 support while Netbeans doesn’t have it yet.
I am facing a problem which is the non-formatting (syntax highlitgh) of PHP when embedded in HTML code.
In this case, I have an index.php file with HTML code and BODY has PHP code that Eclipse is not formatting or applying Highlight syntax on it (only in PHP code).
Someone knows how to fix this, I googled and found nothing on.
are you sure the code is formatted correctly? closed <?php ?> ?
– Gabriel Rodrigues
Post the code there.
– user28595
Place a screenshot.
– rray
You may need to install a code indentation and visualization theme or plugin, but first try this manually: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.php.help%2Fhtml%2Ftasks%2Fformatting_code.html Use the command
Ctrl + Shift + F
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.php.help%2Fhtml%2Freference%2Fpreferences%2Fcode_style_preferences%2Fformatter.html– Ivan Ferrer
To adjust the syntax:http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.php.help%2Fhtml%2Freference%2Fpreferences%2Feditor%2Fsyntax_coloring.html&cp=61_4_3_5_5
– Ivan Ferrer
Ctrl + Shif + F worked! Thanks Ivan Ferrer
– Everton da Rosa
You solved the problem?
– durtto