From 8e4409a70876175ba8dc54e1a084c37a7861bfbf Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 12 Feb 2014 16:08:12 +0100 Subject: Added quickstart doc for TMarkdown --- .../protected/pages/Controls/Markdown.page | 40 ++++++++++++++++++++++ .../pages/Controls/Samples/TMarkdown/Home.page | 31 +++++++++++++++++ .../protected/pages/Controls/Standard.page | 4 +++ 3 files changed, 75 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Markdown.page create mode 100755 demos/quickstart/protected/pages/Controls/Samples/TMarkdown/Home.page (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/Markdown.page b/demos/quickstart/protected/pages/Controls/Markdown.page new file mode 100644 index 00000000..d7cc00c6 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Markdown.page @@ -0,0 +1,40 @@ + + +

TMarkdown

+ + +

+TMarkdown is a text formatter that produces html content from plain text. The formatter follows the Markdown syntax and the GFM (GitHub Flavored Markdown) extension. +

+

+Any content in the body of TMarkdown, including both static text and the rendering results of its child controls, is first converted using the Markdown syntax. Then, to any code block found in the html, syntax highlighting is applied. The code being highlighted follows the syntax of the specified Language, which can be 'php' (default), 'prado', 'css', 'html', etc. Here, 'prado' stands for the syntax of PRADO control templates. If the language is not specified in the Language property, it can be evinced from the Markdown syntax. +

+

+If line numbers are desired in front of each line, set ShowLineNumbers to true. +

+

+To use TMarkdown, simply enclose the contents to be formatted within the body of a TMarkdown control. The following example formats some text and piece of PHP code, +

+ +<com:TMarkdown ShowLineNumbers="true" > +PRADO Markdown Test +=================== + +Some text and a list: +* item 1 +* item 2 + +Now, some code: + +```php +public function test() { + // comment + echo "look me i'm colorful"; +} +``` +</com:TMarkdown> + + + + +
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TMarkdown/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TMarkdown/Home.page new file mode 100755 index 00000000..4cd0f86b --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TMarkdown/Home.page @@ -0,0 +1,31 @@ + + +

TMarkdown Samples

+ + + + + +
+Formatting text and code: + + +PRADO Markdown Test +=================== + +Some text and a list: +* item 1 +* item 2 + +Now, some code: + +```php +public function test() { + // comment + echo "look me i'm colorful"; +} +``` + +
+ +
diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index bac51351..43fecfb3 100755 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -105,6 +105,10 @@ TLiteral represents a static text without any HTML tag surrounding it on a Web page. +
  • + TMarkdown formats its body content following the Markdown syntax. +
  • +
  • TMultiView represents a container for a group of TView controls, each of which is container for other controls. At any time, at most one TView is visible.
  • -- cgit v1.2.3