A PHP block inside an HTML string breaks the string processing
Bug #434803 reported by
Matt
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nXhtml |
In Progress
|
Wishlist
|
Unassigned |
Bug Description
When putting a PHP block inside a string in HTML, the mode loses track of the string at the start of PHP mode, and a quote after the ?> will start a new string.
For example, in:
<input type="hidden" name="act" value="act_<?php print $act; ?>" />
act_ is considered one string, and then /> is a new string. Instead, the " after ?> should close the string with act_
This affects syntax highlighting and indenting.
Changed in nxhtml: | |
status: | In Progress → Won't Fix |
status: | Won't Fix → In Progress |
importance: | Medium → Wishlist |
To post a comment you must log in.
Hi Matt,
Thanks for reporting this. It is a known problem that I can not fix in a good way now, see:
http:// ourcomments. org/Emacs/ nXhtml/ doc/nxhtml- changes. html#php- attribute- values
In the future I hope to fix this, but it requires some rather heavy changes to Emacs. I have some ideas for this and is discussing it with some Emacs developers.