summaryrefslogtreecommitdiff
path: root/demos/composer/protected
diff options
context:
space:
mode:
authorxue <>2006-01-12 13:42:40 +0000
committerxue <>2006-01-12 13:42:40 +0000
commit65f9ef95718e6a9a30f1aa297e3fa566ededdfea (patch)
treef526d0c2f0bfcb357381ccf560242e499d016c91 /demos/composer/protected
parent823ddf3e3fbeb3cf5b30da257d868af743bf3302 (diff)
Diffstat (limited to 'demos/composer/protected')
-rw-r--r--demos/composer/protected/pages/Home.page4
-rw-r--r--demos/composer/protected/pages/Home.php2
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();
}
}