onCommentHTML()

This function is called for every HTML/XHTML comment. This function can be used to setup your own custom validation directives using standard HTML comments. (New v10.9921)

$commentstring - the contents of the HTML comment, excluding the angle brackets; for example, if the comment is <!--test-->, then $commentstring will be "!--test--"

Example:

function onHTMLComment() {
 MessageEx(13|1024,2011083000,MSG_COMMENT,'HTML comment: '+$commentstring);
 if beginsWithCase($commentstring,"!--CSEMYCONFIG_") {
  if $commentstring==="!--CSEMYCONFIG_EXTRACHECKING--" {
   $myoption_extrachecking=true;
   MessageEx(13|1024,2011083001,MSG_COMMENT,'Extra checking enabled!');
  }
  else { if $commentstring==="!--CSEMYCONFIG_LOOSECHECKING--" {
   $myoption_loosechecking=true;
   MessageEx(13|1024,2011083002,MSG_COMMENT,'Loose checking enabled!');
  }}
 }
}