Joomla 代码高亮 [英] Code Highlighting for Joomla
问题描述
我需要在 Joomla 中的文章中突出显示来自各种语言(PHP、C#、VB 等)的源代码的语法.我曾尝试启用 Geshi 插件、更新语言文件并将代码放入我的 Joomla 文章中 - 但是我似乎无法让它工作.
I need syntax highlighting of source code from various languages (PHP, C#, VB, etc) within articles I have in Joomla. I have tried enabling the Geshi plugin, updating the language files and putting the code into my Joomla article - however I can't seem to get it to work.
我也尝试过 JED 的 CodeCitation,但问题似乎是一样的 - 我不知道如何告诉 Joomla 将其作为代码处理.我在我的代码周围放置了 {codecitation} 和 {/codecitation}(以及包括画笔值),但它不起作用.我不确定这些标签应该放在源代码上还是所见即所得
I have also tried CodeCitation from JED but again, the problem seems to be the same - I don't know how to tell Joomla to process it as code. I placed {codecitation} and {/codecitation} around my code (as well as including the brush value) but it doesn't work. I am unsure if these tags should be placed on the source or the wysiwug
有人可以帮忙提供替代方法或找出我做错了什么吗?
Could someone please assist with an alternative method or work out what I am doing wrong?
推荐答案
With CodeCitation:如果您已经使用标签(即 {codecitation} code {/codecitation}
)编写了文章,则应该工作.你有没有检查你是否启用了mambot?
With CodeCitation: if you already wrote the article using the tags (i.e. {codecitation} code {/codecitation}
), it should work. Did you check if you enable the mambot?
这篇关于Joomla 代码高亮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!