From c747273ddd0656b348598b64c78b72d2d4ca23d1 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 1 Jun 2006 11:30:16 +0000 Subject: adding TMarkdown for markdown syntax --- demos/quickstart/protected/comments/CommentList.php | 5 ++++- demos/quickstart/protected/comments/CommentList.tpl | 9 ++++++++- demos/quickstart/themes/PradoSoft/style.css | 12 ++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) (limited to 'demos') diff --git a/demos/quickstart/protected/comments/CommentList.php b/demos/quickstart/protected/comments/CommentList.php index 7ea5be6b..d44c3e55 100644 --- a/demos/quickstart/protected/comments/CommentList.php +++ b/demos/quickstart/protected/comments/CommentList.php @@ -12,7 +12,10 @@ Prado::using('System.I18N.*'); */ class CommentList extends TTemplateControl { - private $_exclude = array('Comments', 'GettingStarted.Introduction'); + private $_exclude = array( + 'Comments', + 'Markdown', + 'GettingStarted.Introduction'); private $_quickstart; diff --git a/demos/quickstart/protected/comments/CommentList.tpl b/demos/quickstart/protected/comments/CommentList.tpl index 1dd4ee2d..25cb871f 100644 --- a/demos/quickstart/protected/comments/CommentList.tpl +++ b/demos/quickstart/protected/comments/CommentList.tpl @@ -16,7 +16,9 @@
+ <%# $this->DataItem['comment'] %> +
@@ -38,7 +40,8 @@ Please use the Prado wiki for longer pieces and detailed solutions.

Comments will be periodically reviewed, integrated into the documentation and removed. - You may use HTML in your comment.

+ You may use markdown syntax in your comment.

+
@@ -67,7 +70,9 @@

Preview comment

+ <%= $this->content->Text %> +
@@ -85,7 +90,9 @@

Preview comment

+ <%= $this->content->Text %> +
diff --git a/demos/quickstart/themes/PradoSoft/style.css b/demos/quickstart/themes/PradoSoft/style.css index d0c3b0be..782697ae 100644 --- a/demos/quickstart/themes/PradoSoft/style.css +++ b/demos/quickstart/themes/PradoSoft/style.css @@ -505,4 +505,16 @@ dd { background-color: #ffffcc; padding: 20px; +} + +pre code +{ + display: block; + padding: 0.5em; + border-style:solid; + border-width:1px; + border-color:#eeeeee; + background-color:#ffffee; + font-family: "Courier New", Courier, mono; + margin: 0.2em; } \ No newline at end of file -- cgit v1.2.3