From 27578bac69d64900e8b252bd5a61a2c5d2b13ee8 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 26 Mar 2006 23:47:19 +0000 Subject: Added tutorial for TTextHighlighter. --- .../protected/pages/Controls/TextHighlighter.page | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Controls/TextHighlighter.page b/demos/quickstart/protected/pages/Controls/TextHighlighter.page index 8ef30c71..23c33b75 100644 --- a/demos/quickstart/protected/pages/Controls/TextHighlighter.page +++ b/demos/quickstart/protected/pages/Controls/TextHighlighter.page @@ -3,4 +3,34 @@

TTextHighlighter

+

+TTextHighlighter does syntax highlighting for its body content, including both static text and the rendering results of its child controls. The text 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 line numbers are desired in front of each line, set ShowLineNumbers to true. +

+

+To use TTextHighlighter, simply enclose the contents to be syntax highlighted within the body of a TTextHighlighter control. The following example highlights a piece of PHP code, +

+ +<com:TTextHighlighter ShowLineNumbers="true"> + +</com:TTextHighlighter> + + +

+The output will look as follows, +

+
+ + + +
+ \ No newline at end of file -- cgit v1.2.3