The making of "WebCoder.NET" – part 7
March 30, 2007
As I talked about earlier on this blog, the XML/Scripted dialog system will be included in "WebCoder.NET" as well. Therefore, the dialogs will look almost the same as in WebCoder 2005, since they are based on the same (although more tidy) XML files :). I have added a small but pretty cool feature though. By using the "htmlAttribute" property of the controls in the XML file, you may make WebCoder aware of which HTML attribute the control is used for. Since WebCoder already knows which tag the dialog is registered for, it can now check the attribute by using the same datafiles used for the HTML Inspector and HTML IntelliSense, and tell you if there are anything you should be aware of when using the given attribute. Of course, this is based on the (X)HTML definition you are currently using for the active document. The dialogs will not be nagging you about these things, but using information icons, it will tell you about it in a subtle way. Have a look at this screenshot where you can see how the controls are marked with icons:
The green icon tells you that the attributes is required, the blue one will normally mean that the attribute has been deprecated. There is of course tooltips for the icons when hovering over them with the mouse. Now, let's try switching the document to XHTML and see the same dialog:
The blue icons have become red, because these attributes are simply not defined within the XHTML standard. If you make your own tag dialogs, they will be able to use this system as well, since it's entirely based on the information from the dialog XML file as well as information about tag and attributes from the active HTML definition, which you may edit as well.