diff options
Diffstat (limited to 'demos/composer/protected')
-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();
}
}
|