Can I add additional elements (tags) to Webuilder so they validate and auto-close.
Example, I'm using Webuilder 2014 (12.2.0.150). I would like to use the new html5 <main></main> tag - which is now part of the html5 spec. I would like it to validate as other html5 elements do (such as <section></section> and <article></article> etc.). Currently Webuilder does not recognize this element as a valid tag. Is this something I can add somewhere into Webuilder on my own? Thanks!
Adding new html5 elements to Webuilder
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Re: Adding new html5 elements to Webuilder
We do plan to add these tags but you can add them to %programfiles%\WeBuilder 2014\data\mldefs\HTML 5.ini yourself. Let me know if it worked for you.
Blumentals Software Programmer
Re: Adding new html5 elements to Webuilder
Thanks for the reply.
So I edited HTML 5.ini and added two entries for the new main tag.
#1. added 'main' to the %[tags] section
#2. added :
[main]
#core
#events
%endtag=1
WeBuilder will now close the <main> tag with </main>, but the open/close pair still does not highlight the matching pairs in green as all other tags do. The <main></main> stay red, and indicate they are not recognized by WeBuilder. Thanks for the help, is there anything else I need to do to make the new tags fully functional?
So I edited HTML 5.ini and added two entries for the new main tag.
#1. added 'main' to the %[tags] section
#2. added :
[main]
#core
#events
%endtag=1
WeBuilder will now close the <main> tag with </main>, but the open/close pair still does not highlight the matching pairs in green as all other tags do. The <main></main> stay red, and indicate they are not recognized by WeBuilder. Thanks for the help, is there anything else I need to do to make the new tags fully functional?
Re: Adding new html5 elements to Webuilder
Open %programfiles%\WeBuilder 2014\data\parsers\htmlparser.dat in text editor and look for lines like:
stagname 'table' shtmltag tresword
Add all the extra tags that you want there. If you use PHP then you need to do the same to phpparser.dat. I think this should be enough.
stagname 'table' shtmltag tresword
Add all the extra tags that you want there. If you use PHP then you need to do the same to phpparser.dat. I think this should be enough.
Blumentals Software Programmer
Re: Adding new html5 elements to Webuilder
Those instructions worked. Webuilder is now working as required.
Thanks much for the help Aivars!
Thanks much for the help Aivars!