Adding new html5 elements to Webuilder

Post your questions and problem reports here

Moderator: kfury77

Forum rules
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;

Adding new html5 elements to Webuilder

Postby mt2ri » Thu May 29, 2014 8:43 pm

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!
mt2ri
 
Posts: 5
Joined: Sat Oct 20, 2012 7:14 pm

Re: Adding new html5 elements to Webuilder

Postby Aivars » Sat May 31, 2014 5:33 pm

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Adding new html5 elements to Webuilder

Postby mt2ri » Sun Jun 01, 2014 4:20 am

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?
mt2ri
 
Posts: 5
Joined: Sat Oct 20, 2012 7:14 pm

Re: Adding new html5 elements to Webuilder

Postby Aivars » Sun Jun 01, 2014 9:39 am

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.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Adding new html5 elements to Webuilder

Postby mt2ri » Mon Jun 02, 2014 4:23 pm

Those instructions worked. Webuilder is now working as required.

Thanks much for the help Aivars!
mt2ri
 
Posts: 5
Joined: Sat Oct 20, 2012 7:14 pm


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 1 guest