LifeRay和语法突出显示/代码美化工/代码格式化

问题描述:

我正在尝试将LifeRay作为内部知识库,并且该内容的块将是代码/ sql片段。LifeRay和语法突出显示/代码美化工/代码格式化

在代码着色/格式化等方面可以做些什么...有没有LifeRay插件可以增加这种功能?我做了一些搜索,找不到任何东西。

例如为: http://alexgorbatchev.com/SyntaxHighlighter/

感谢。

Liferay可以配置为使用多个编辑器,如TinyMCE或CKEditor。此配置通常通过在主portal-ext.properties文件设置属性,它扩展了嵌入式portal.properties完成:

# You can configure individual JSP pages to use a specific implementation of 
    # the available WYSIWYG editors: ckeditor, ckeditor_bbcode, ckeditor_creole, 
    # fckeditor, liferay, simple, tinymce, or tinymce_simple. 
    # 
    editor.wysiwyg.default=ckeditor 
    (...) 
    editor.wysiwyg.portal-web.docroot.html.portlet.journal.edit_article_content.jsp=ckeditor 

它可以用于创建尤其设计为允许的所述激活一个新的JSP专用语法编辑器。 Liferay使用CodePress作为它的一些配置的XML编辑器,这可能是一个好的开始:查看 liferay-portal-6.1.0/tomcat-6.0.29/webapps/ROOT/html/js/editor/codepress/index.html作为开始。

Arnaud

+0

嗨Arnaud,谢谢。 – 2011-04-04 19:09:06