Found a dirty fix but would like to know a better way
1 install droplet
http://www.websitebakers.com/pages/droplets/official-library/content/showsection.php2 edit the code as follows:
global $database, $wb;
$get_content = $database->query("SELECT content FROM ".TABLE_PREFIX."mod_code WHERE section_id = '$section'");
$fetch_content = $get_content->fetchRow();
$content = ($fetch_content['content']);
$wb->preprocess($content);
return $content;
Just changed the table name in select
3. I created a code type section - it is hidden anyway, does not parse HTML.
4. In WYSIWYG section on the same page add [[showsection?section=xx]]
and voila!
It is not too inconvenient but a hack is a hack. It would be better if code type functionality worked out of the box,
HTML be parsed to the output by the system core.