diff options
author | wei <> | 2006-02-01 07:12:14 +0000 |
---|---|---|
committer | wei <> | 2006-02-01 07:12:14 +0000 |
commit | cff3c0c965c5f22918abe736432bd73a40bae5b2 (patch) | |
tree | 2609856dc7900d58ed88aca240c013a190b3981b /framework/Web/UI/TClientScriptManager.php | |
parent | 4cec5a79840bc13480c02e1032e632e9dd9bba1f (diff) |
Update syntax highlighter with Copy Code option.
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index be6611cd..7b85dbab 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -463,6 +463,11 @@ class TClientScriptManager extends TComponent } */ + public function renderJavascriptBlock($code) + { + return "<script type=\"text/javascript\">\n/*<![CDATA[*/\n{$code}\n/*]]>*/\n</script>"; + } + public function renderStyleSheetFiles($writer) { $str=''; |