This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Open an rhtml file and type <p>. Wait for code completion to present the closing </p>, accept the completion and then press enter. The closing </p> is indented blow the opening. Producing a series of these in your code will look as follows: <p> </p> <p> </p> <p> </p> <p> </p> Alt+Shift+F corrects the formatting.
RHTML indenting is still in progress.
This is no longer a problem - but I note that when I press newline after <p> it doesn't indent. If you type some text it's in column 0. Pressing Alt-Shift-F reformats and indents the text in. I think smart indent should have indented after <p> but that's an HTML editing problem.
The latter problem depends directly on issue 120491
A lot of people are running into this bug; somebody just stated on nbusers that this bug is a blocker for them. Tomasz, any idea what this might be?
The new line indentation is set correctly by the HTML indent task, but then overridden by theindent task for the 'application/x-httpd-eruby/text/x-ruby' mime path. The x-ruby indent task should not modify the document when the cursor position is within another language path (embedded or on the same level).
Fixed: changeset: 64914:0cd2fe7830b4 tag: tip user: Tor Norbye <tor@netbeans.org> date: Sun Jan 27 14:29:22 2008 -0800 summary: 109262: Newline in HTML within RHTML files don't indent