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.
To reproduce the problem, create a webapp and create an heml file in it. Open 'tools | options | advanced options | editor settings | html editor' and set 'Indentation Engine' to 'No indentation'. Now try entering '<table>ENTER<tr>' and the editor will still try to auto indent. This problem also appears with RHTML files in ruby and rails projects, presumably because RHTML editor is based on HTML editor.
Umm, why do you need 'No indentation' in the first place?
If HTML editor does not support 'No Indentation' then the option should be removed from the advanced options for html files. This issue was created in response to: http://www.netbeans.org/servlets/BrowseList?list=nbusers&by=thread&from=825996 The user was annoyed with the default indentation and as a workaround wanted to switch off the indentation. I guess it is okay to say 'No indentation' is not supported, provided it is documented and the option is removed; even though providing the choice and accepting it is probably better. (Such an option would let the user turn off the indentation while typing and then turn it back on and do right-click|format. By the way, this is the way java editor works; it is possible to turn the indentation engine on and off...) I am reopening the bug. Please change the summary to 'Remove no-indentation from advanced options for html files' if no indentation is not supported for html files. (I will open a separate bug for the indentation bug filed in thread 825996.
Ok, the option should obviously work. Just keep in mind that 'Editor Settings' and 'Indentation Engines' as well as the rest of the Advanced Options dialog is going to be removed.
minor issue, will be fixed by removal of the advanced options.
*** Issue 129157 has been marked as a duplicate of this issue. ***
There is more options in the Advanced Options that does not work properly. For example if you go to Editing > Editor Settings > Java Editor > ellipsis (...) button by the Indentation engine in the Properties window. a window appears. If you check/uncheck "Add newline before the brace", it has no effect - the result is always: while (true) { // some code } instead of (in the case that a newline should be added): while { // some code }
The previous comment was reported as issue #129166.
NB 6.5: Advanced options were removed, so it is not possible to reproduce the problem. In project properties, there is section Formatting, but in web project, I can select only "All languages" or "Java", so no special settings for HTML files... Closing as WONTFIX, because the described functionality is not there anymore. Reporter, please reopen with new info if you don't agree.
v