|
Installation instructions:
- download the codecitation plugin.
- install the plugin using the Joomla Extensions install utility.
- ENABLE the new CodeCitation plugin with the Joomla 1.5 backend plugin manager.
- WE RECOMMEND to change the plugin's order to the value greater, then the order of "Content - Pagebreak" plugin (for example, 10002)
- Customize the parameters value of the plugin with the Joomla 1.5 backend plugin manager:
- Color theme
- Alternative tag to trigger the plugin usage
- Default engine parameters values.
- Vote for this plugin at Joomla! extentions directory: http://extensions.joomla.org/extensions/edition/code-display/8068/details.
Using the plugin:
The classic syntax for the usage is: {codecitation class="engine parameters" width="" }
CODE TO HIGHTLIGHT
{/codecitation}
where:
engine parameters is a parameter string for the engine - see supported brushes and parameters.
width is an optional parameter to specify width (fix code in some cases into your template)
The symplified syntax for the usage is:
{code}
CODE TO HIGHTLIGHT
{/code}
But make sure you have customized and specified CodeCitation alternative tag in plugin parameters.
Note:
If you use classic syntax (see above) we strongly recommend to add the space before closing } : {codecitation class="brush:csharp" SPACE }
This will workaround some Joomla! issues with article text transformation.
ENJOY!
|