diff options
author | xue <> | 2006-01-12 13:42:40 +0000 |
---|---|---|
committer | xue <> | 2006-01-12 13:42:40 +0000 |
commit | 65f9ef95718e6a9a30f1aa297e3fa566ededdfea (patch) | |
tree | f526d0c2f0bfcb357381ccf560242e499d016c91 /demos | |
parent | 823ddf3e3fbeb3cf5b30da257d868af743bf3302 (diff) |
Diffstat (limited to 'demos')
-rw-r--r-- | demos/composer/protected/pages/Home.page | 4 | ||||
-rw-r--r-- | demos/composer/protected/pages/Home.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/composer/protected/pages/Home.page b/demos/composer/protected/pages/Home.page index d75a61d8..65391bd5 100644 --- a/demos/composer/protected/pages/Home.page +++ b/demos/composer/protected/pages/Home.page @@ -122,8 +122,8 @@ Author Email <hr/>
<com:TButton Text="Generate Code" Click="generateCode" />
-<pre>
+<com:TTextHighlighter>
<com:TLiteral ID="SourceCode" />
-</pre>
+</com:TTextHighlighter>
</com:TContent>
diff --git a/demos/composer/protected/pages/Home.php b/demos/composer/protected/pages/Home.php index e0112fd7..ddeeb2fe 100644 --- a/demos/composer/protected/pages/Home.php +++ b/demos/composer/protected/pages/Home.php @@ -78,7 +78,7 @@ class Home extends TPage $this->refresh();
$writer=Prado::createComponent('System.IO.TTextWriter');
$this->ClassDefinition->render($writer);
- $this->SourceCode->Text=highlight_string($writer->flush(),true);
+ $this->SourceCode->Text=$writer->flush();
}
}
|