Taming PHP-Markdown in DWMX
Gee
heygee at geedev.com
Thu Apr 8 13:23:34 EDT 2004
A tip for the small subset of users who are playing with PHP-Markdown in
Dreamweaver MX 2004 for Windows:
If you are getting some unexpected behavior w/r/t tag highlighting when
working with the PHP-Markdown code -- and/or even more bizarre behavior in
the design view of a page including said code -- I believe it is because
DWMX04 is interpreting a few '?>' combinations scattered in the code as
actual processing block close tags instead characters that are part of
regex search strings.
A quick fix is to use the <script language="php>...</script> tag instead
of <?php...?> to contain the processing block in the include file. E.g.:
<script language="php">
//<![CDATA[
... PHP-Markdown code ...
//]]>
</script>
The CDATA tag is in there because, if I understand correct, script data is
PCDATA in XHTML, and you don't want to avoid converting the angle brackets
to < etc.
Working so far for me. YMMV. Those not belonging to this narrow sub-group
are free to chuckle politely.
--
//. gee of geedev dot com
More information about the Markdown-discuss
mailing list