You are here: PSPad forum > English discussion forum > default html code

default html code

#1 default html code

Posted by: ronbo | Date: 2019-03-07 08:01 | IP: IP Logged

When starting an HTML document the default html code is using the doctype for html 4. Where do I edit this to change the doctype to html 5?

Options: Reply | Quote | Up ^


#2 Re: default html code

Posted by: pspad | Date: 2019-03-07 09:17 | IP: IP Logged

Hello

It's template file Default.html in the subfolder Template

If you have PSpad installed in program files, you will need to run it as administrator to have rights to write there.

Easier way how to edit template:
Ctrl+N (new file)
Second tab - templates
Choose Default under HTML and button Modify

Options: Reply | Quote | Up ^


#3 Re: default html code

Posted by: ronbo | Date: 2019-03-07 16:18 | IP: IP Logged

Thanks, that worked!

Options: Reply | Quote | Up ^


#4 Re: default html code

Posted by: poopiepoop | Date: 2021-01-21 19:57 | IP: IP Logged

sorry for the ressurrect, but how would i go about create a new such template?

i have tried creating a new file in the /Templates but i don't know how to register it

Options: Reply | Quote | Up ^


#5 Re: default html code

Posted by: pspad | Date: 2021-01-21 20:02 | IP: IP Logged

There is no necessary to register it. If you want to be used as default, modify file default.html

Or you can use file/new (ctrl+n) and choose your template

Edited 1 time(s). Last edit at 2021-01-21 20:03 by pspad.

Options: Reply | Quote | Up ^


#6 Re: default html code

Posted by: poopiepoop | Date: 2021-01-21 20:15 | IP: IP Logged

no, i mean i wanted to create a totally new template with a new extension. i was hoping i could create new template for ".blade.php" file that would show up in the templates when i click on a new file

Options: Reply | Quote | Up ^


#7 Re: default html code

Posted by: pspad | Date: 2021-01-21 20:22 | IP: IP Logged

Windows world doesn't supports multiple file extensions.
If you create blade.php file, it will apear in templates for php automatically. There is no necessary to register anything

Options: Reply | Quote | Up ^


#8 Re: default html code

Posted by: poopiepoop | Date: 2021-01-21 20:57 | IP: IP Logged

ok, i have tried to create a "Default.bladephp" file in the templates, but i still don't see it show up in the "new file" :/

image

Options: Reply | Quote | Up ^


#9 Re: default html code

Posted by: pspad | Date: 2021-01-21 21:43 | IP: IP Logged

Because extension .bladephp isn't registered to any highlighter.
If you want new extension for e.g. PHP, go to menu settings / highlighter settings / php and add your extension

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR