web-mode icon indicating copy to clipboard operation
web-mode copied to clipboard

php tag indent in script

Open bugcook opened this issue 12 years ago • 7 comments

I don't know if this this is a bug.

when using php code inside javascript, the php code don't indent.

screen shot 2014-02-19 at 4 36 10 pm

See, if the code is out of <script type="text/javascript"></script>, they can indent well.

bugcook avatar Feb 19 '14 08:02 bugcook

It is intentional .. I do not use markup-indentation but bracket-indentation in js parts

fxbois avatar Feb 19 '14 09:02 fxbois

Any possible to change this? think the situation in .js.erb file, like in issue #169, many nested if and else.

bugcook avatar Feb 19 '14 09:02 bugcook

I'll try to look at this

fxbois avatar Feb 19 '14 12:02 fxbois

Could you test the last committed version please

fxbois avatar Feb 20 '14 00:02 fxbois

works good in <script type="text/javascript"></script>, but if I indent the lines in .js.erb file, the emacs lose response.

bugcook avatar Feb 20 '14 03:02 bugcook

should be better with the version just committed

fxbois avatar Feb 20 '14 07:02 fxbois

@eorza can I close the issue ?

fxbois avatar Feb 23 '14 16:02 fxbois