nxhtml php chunk indent weirdly

Asked by cuiaoxiang

I'm using emacs23 with nxhtml 2.08.
I have tried many modes before to edit php files with mixed code part, nxhtml is the most `bug free' one I have already tried.
Now it seems everything works fine but one indentation problem.
Below is the how it looks:
<html>
......
    <?php
                                                            if ($var == 1)
                                                            {
                                                                  // blabla
                                                            }
                                                            // blabla
    ?>
......
</html>
The php chunk is indented to the right side, which looks very weird.
Is there any customization to fix this?

Question information

Language:
English Edit question
Status:
Answered
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
lborgman (lennart-borgman) said :
#1

Thanks cuiaoxiang for telling this. It looks like a bug however so I convert this to a bug report first.

Can you help with this problem?

Provide an answer of your own, or ask cuiaoxiang for more information if necessary.

To post a message you must log in.