Revision #5 has been created by Darwin Wen on Apr 24, 2011, 2:47:50 AM with the memo:
忘记增加页面脚本
« previous (#4)
Changes
Title
unchanged
Yii tinymce结合syntaxHighlighter和syntax
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
tinymce, syntaxHighlighter
Content
changed
[...]
$clientScript -> registerScriptFile("/js/syntaxhighlighter/shBrushPhp.js");
$clientScript -> registerCssFile("/css/syntaxhighlighter/shCore.css");
$clientScript -> registerCssFile("/css/syntaxhighlighter/shThemeDefault.css");
```
在页面view.php 增加
```php
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
```
第三步下载 安装tinymce的SyntaxHighlighter插件syntaxhl
直达地址: http://github.com/RichGuk/syntaxhl
下载后解压放入protected\extensions\tinymce\assets\tiny_mce\plugins 目录下面[...]