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.

Bug 163070

Summary: DOCTYPE and encoding on-the-fly
Product: web Reporter: caesar2k <caesar2k>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description caesar2k 2009-04-20 05:20:09 UTC
Dreamweaver permitts you to change the DOCTYPE of the current opened file on-the-fly. That's a very nice enhancement to
have, since sometimes, when designing a email marketing template, you need to go old school HTML or most of the times,
you want to change from XHTML transitional to strict, and you have to change the code to yourself. Make it so, you can
change the doctype of the opened file, no matter the extension. Dreamweaver, when it does not find a DOCTYPE, it
automatically adds it to the top of the file, along with the correct <html> modifications.]
And XHTML strict should be default for any files created. When I'm using a buffering on PHP, with ob_start() /
ob_get_clean(), the <br> stays as <br>, and not <br /> for example. I cannot add a DOCTYPE to every PHP file just
because I want the HTML to be XHTML strict
Also, would be nice to change the file encoding for example from ISO to UTF-8 and the entire file get's encoded
correctly, like Dreamweaver does it.