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 - DOCTYPE and encoding on-the-fly
Summary: DOCTYPE and encoding on-the-fly
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 05:20 UTC by caesar2k
Modified: 2014-10-06 13:27 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.