Additional languages can be added since the Beautifier library is flexible and can support a wide range of language families. Other languages can be added with relative easy by downloading the full PHP dist from http://www.beautifier.org and converting the relevant language file from PHP to Perl.
Language Syntax C++ %CODE{"cpp"}%...%ENDCODE%C# %CODE{"csharp"}%...%ENDCODE%Java %CODE{"java"}%...%ENDCODE%Makefile %CODE{"makefile"}%...%ENDCODE%Perl %CODE{"perl"}%...%ENDCODE%Python %CODE{"python"}%...%ENDCODE%PHP3 %CODE{"php3"}%...%ENDCODE%Scheme %CODE{"scheme"}%...%ENDCODE%TCL %CODE{"tcl"}%...%ENDCODE%
%CODE{"cpp"}%
void foo() {
print("Do stuff.\n");
}
%ENDCODE%
%<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
BeautifierPlugin.zip in your twiki installation directory, this will also install the Beautifier library by default. Content:
| File: | Description: |
|---|---|
data/TWiki/BeautifierPlugin.txt | Plugin topic |
data/TWiki/BeautifierPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/BeautifierPlugin.pm | Plugin Perl module |
| File: | Description: |
|---|---|
lib/Beautifier/Context.pm | |
lib/Beautifier/Core.pm | |
lib/Beautifier/HFile.pm | |
lib/Beautifier/Magic.pm | |
lib/Beautifier/MagicConfig.pm | |
lib/HFile/HFile_cpp.pm | |
lib/HFile/HFile_csharp.pm | C#, courtesy of MatthewMastracci? |
lib/HFile/HFile_java.pm | |
lib/HFile/HFile_makefile.pm | Makefile, courtesy of Agora:Main/BruceMitchener |
lib/HFile/HFile_perl.pm | |
lib/HFile/HFile_php3.pm | |
lib/HFile/HFile_python.pm | |
lib/HFile/HFile_scheme.pm | |
lib/HFile/HFile_tcl.pm | |
lib/Output/ANSI.pm | |
lib/Output/DocBook.pm | |
lib/Output/HTML.pm | |
lib/TWiki/Plugins | |
lib/TWiki/Plugins/BeautifierPlugin.pm |
div.fragment{
background : #FFFFCC;
border : 1px solid #CCCCCC;
margin-left : 2em;
margin-right : 2em;
padding : 4px;
}
#include/** @brief Advance the simulation by one timeslice. */ void nWorld::StepSim() { // Iterate simulation loop for (node = entityList.GetHead(); node != NULL; node = node->GetSucc()) { entity = (nEntity*)node->GetPtr(); entity->Trigger(this, this->stepSize); } }
| Date | Change | Name |
|---|---|---|
| 28 Dec 2002 | Accepts mixed case language names | LingLo? |
| 20 Dec 2002 | Changed syntax to allow for simpler addition of new languages | LingLo? |
| 16 Oct 2002 | Added nebula nodes and links to Python scripts, but it doesn't work since the node names are usually in strings | LeafGarland? |
| 30 Jul 2002 | Added nebula nodes and links to Tcl scripts | LeafGarland? |
| 30 Jul 2002 | Changed Beautifier::Core to use 'linkscripts' | LeafGarland? |
| 28 Jul 2002 | Created | LingLo? |
| Plugin Author: | TWiki:Main/LingLo |
| Plugin Version: | 11 Jan 2003 (V1.12) |
| CPAN Dependencies: | none |
| Other Dependencies: | Beautifier |
| Perl Version: | 5.005 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/BeautifierPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/BeautifierPluginDev |