Comparing revisions for SyntaxHighlighter

Additions:
[[WikkaDocumentation Wikka Documentation]]
----
===== Wikka Syntax Highlighter =====
{{lastedit}}

[[http://qbnz.com/highlighter/ GeSHi]] is now hooked into Wikka.

Usage: ""%%(formatter) code %%""

The following formatters are available:

**from [[http://qbnz.com/highlighter/ GeSHi]]:**
- Actionscript
- ADA
- Apache Log (apache)
- ASM
- ASP
- Bash
- C
- C for Macs (c_mac)
- C# (csharp)
- ""C++"" (cpp)
- CAD DCL (caddcl)
- ""CadLisp""
- CSS
- Delphi
- HTML
- Java
- Javascript
- Lisp
- Lua
- NSIS
- Objective C (objc)
- ""OpenOffice"" BASIC (oobas)
- Pascal
- Perl
- PHP
- Python
- Q(uick)BASIC (qbasic)
- Smarty
- SQL
- VB.NET (vbnet)
- Visual BASIC (vb)
- Visual Fox Pro (visualfoxpro)
- XML

**built-in:**
~-INI file
~-email (with quotation indentation)
~-php (taken care of by ""GeSHi"", if present)
~-code, unknown language, plain text

Note that ""GeSHi"" syntax highlighting takes precedence over built-in syntax highlighting.

===Examples===

==highlighted with [[http://qbnz.com/highlighter/ GeSHi]]==

""%%(php) PHP code%%:""
%%(php)
<?php
phpinfo();
$text = "Hello, World!";
print $text;
?>
%%

""%%(css) CSS code%%""
%%(css)
body {
font-family: "Trebuchet MS", Georgia, serif;
font-size: .9em;
line-height: 1.4em;
font-weight: normal;
color: #000000;
background-image: url(../images/wikkalight.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-color: #000;
margin: 0px;
}
%%

""%%(javascript) JavaScript code%%""
%%(javascript)
function fKeyDown()
{
if (event.keyCode == 9)
{
event.returnValue = false;
document.selection.createRange().text = String.fromCharCode(9);
}
}
%%

==Wikka built-in highlighter==

""%%(ini) INI file contents%%:""
%%(ini)
; Menu specification file for Opera 7.0

[Version]
File Version=2

[Info] #background info
Name=Munin++ Menu
Description=Munin++ Menu
Author=NonTroppo (originally by Rijk van Geijtenbeek)
Version=1.9
%%

""%%(email) Email message%%:""
%%(email)
Hi!
>>>> My Llama loves foot massage.
>>> You really think so?
>> Yes, I know he does.
>Are you sure?

Of course, yes!

Mr. Scruff
%%

""%%code%%:""
%%
int main(int arc,char **argv)
{
printf("Hello, %s!
", (argc>1) ? argv[1] : "World");
return 0;
}
%%


Give it a thorough testing, and if all is well, it will be released in the upcoming version. -- JsnX

''Testing done - see WikkaGeshiIntegration. --JavaWoman''

----
CategoryDevelopment CategoryDocumentation
Deletions:
<<===This page has moved===

This page can now be found on the [[Docs:SyntaxHighlighter Wikka Documentation Server]].
Thanks for updating your bookmarks!
----
An archive of [[http://wikkawiki.org/SyntaxHighlighter/revisions
old revisions of this page]] is still available for reference.<<
::c::
----
CategoryMigratedDocs
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki