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
bitwiseman
changed the title
wrong indent when a string has unclosed <?
wrong indent for unclosed <? - need to support disabling templating
Apr 16, 2019
In 1.9.0 we improved the processing of templating languages such as php and turned them on by default. Unfortunately, that causes issues for some users who were no using templating (See #1647 for details).
So, there is a new setting added in 1.10.0: templating.
values: (auto,django,erb,handlebars,php) [default: "auto"] auto = none in JavaScript, all in html
Even though this is html, the area inside the script is treated as Javascript and so by default does not handle php. To fix this, set "templating": "php" (in your .jsbeautifyrc file).
Description
Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Environment
OS:
window10
Settings
Example:
The text was updated successfully, but these errors were encountered: