Start of topic | Skip to actions
SourceHighlightPluginThis plugin allows you to have code fragments automatically formatted and highlighted using the GNU source-highlight package.Syntax Rules
You can also define a default language and use the shortcut: %CODE% ... %ENDCODE%
Examples
SourceHighlightPlugin Global SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>%, i.e. %SOURCEHIGHLIGHTPLUGIN_DEFAULTLANGUAGE%
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
package com.foo.stuff;
import java.util.ArrayList;
import java.util.List;
public class Thingy
{
private List myList;
public Thingy()
{
myList = new ArrayList();
}
/**
* @param count This is the thingy you want.
*/
public String getThingy( int count )
{
return (String)myList.get( count );
}
}
BugsHistory
Plugin Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||