Re: Re: docs freeze
"Nuno Lopes" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <010101c411ba$40816e70$0100a8c0@pc07653> |
> One issue I see with my test, ampersands are showing up as "&" in
> the rendered HTML display (source looks like "&amp;").
Can you give me a specific html so that I can take a look at this, please?
Other things:
I've finished my job for now, so thats the end of docs freeze (because didou
can't contribute now).
So start to modify the docs and test the new system!
The (new) corrected way to write examples is:
<example>
<title>SMARTY_DIR</title>
<programlisting role="php">
<![CDATA[
<?php
// set path to Smarty directory
define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
require_once(SMARTY_DIR."Smarty.class.php");
?>
]]>
</programlisting>
</example>
Note the CDATA tag and the programlisting role. with CDATA you don't need
(and can't) escape characters like &. You may write your scripts freely. The
programlisting role will enable you to highlight the examples automatically.
You may view for an example.
Nuno
P.S.: I don't have much time to implement CHM version building now. But PDF
isn't too complicated. Do you want to be able to build PDF with a 'make
pdf'?
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php