You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please give code formatting for multiple languages in one file. As example: If you are having HTML and PHP code in a php-file, then you won't get formatted HTML code and you have to format your HTML code manually.
As solution, it would be nice to associate a extension to multiple languages in the settings: "files.associations": { "*.php": ["php", "html"] }
Thanks and best regards!
The text was updated successfully, but these errors were encountered:
The current story is that for a PHP file, the PHP formatter has to deal with the html content and format it.
Generic solutions are difficult and will result in bugs due to lack of understanding on how the two languages play together. Can the embedded content be indented? Can new lines be added? Most of the time only the main language has an understanding of that.
So if you miss html formatting in PHP, file an issue against the provider of the PHP formatter.
Hi,
this is a feature request and not an issue.
Please give code formatting for multiple languages in one file. As example: If you are having HTML and PHP code in a php-file, then you won't get formatted HTML code and you have to format your HTML code manually.
As solution, it would be nice to associate a extension to multiple languages in the settings:
"files.associations": { "*.php": ["php", "html"] }
Thanks and best regards!
The text was updated successfully, but these errors were encountered: