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?
推荐答案
使用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屋!