You are here: PSPad forum > Bug report / Hlášení chyb > Re: XHTML buildup is wrong
Posted by: SphaeroX | Date: 02/09/2010 12:24 | IP: IP Logged
Hello everbody!
When i create a new xhmtl document, pspad will create this one:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title></title>
</head>
<body>
</body>
</html>
HTML 4.01, but it's wrong. Look at the XHTML.def
[DOCTYPE | XHTML Strict version]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
;
[DOCTYPEf | XHTML Frameset version]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
|
;
[DOCTYPEt | XHTML Transitional version]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
and
[HTMLs |N simple XHTML page template]
<?xml version="1.0" %encoding%?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html %xmllang% xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; %charset%" />
<title>%title2%</title>
</head>
<body>
§|
</body>
</html>
;
;
Thats okay, but PSPad still create HTML 4.01 documents, why?
// EDIT
i using the german translation.
Edited 1 time(s). Last edit at 02/09/2010 12:26 by SphaeroX.
Posted by: pspad | Date: 02/09/2010 12:31 | IP: IP Logged
PSpad uses dafault.html file from Template folder, coz you use .HTML extension. Modify this file as you need.
Posted by: SphaeroX | Date: 02/10/2010 10:14 | IP: IP Logged
well, why u put the Default.xhtml into the template folder when i didn't use this?
Posted by: pspad | Date: 02/10/2010 10:53 | IP: IP Logged
Use .XHTML extension, then PSpad will use your template
Posted by: SphaeroX | Date: 02/10/2010 12:31 | IP: IP Logged
yeah, ubt when i create a new xhtml document, it will create an .html document.
Posted by: pspad | Date: 02/10/2010 12:42 | IP: IP Logged
SphaeroX:yeah, ubt when i create a new xhtml document, it will create an .html document.
PSpad will create document from first file extension from highlighter list.
If on the first place of highlighter extension list is HTML, pspad will create new HTML file. If you change order and on the first place you put XHTML file extension, PSpad will create file.XHTML
To create file as you want tuse New file dialog. You can choose template as you need.
Editor PSPad - freeware editor, © 2001 - 2013 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák