Difference between revisions of "Syntax Highlight"
From MS Computech
(Created page with 'http://www.lastengine.com/syntax-highlighter-code-colorizer-mediawiki/ <pre class="brush:php">Your PHP Code Here</pre> <pre class="brush: php; highlight: [5, 15]; html-script: t…') |
|||
| Line 1: | Line 1: | ||
http://www.lastengine.com/syntax-highlighter-code-colorizer-mediawiki/ | http://www.lastengine.com/syntax-highlighter-code-colorizer-mediawiki/ | ||
| − | <pre class="brush:php"> | + | <pre class="brush:php">// Hello World in Microsoft C# ("C-Sharp"). |
| − | <pre class="brush: php; highlight: [5, 15]; html-script: true"> | + | |
| + | using System; | ||
| + | |||
| + | class HelloWorld | ||
| + | { | ||
| + | public static int Main(String[] args) | ||
| + | { | ||
| + | Console.WriteLine("Hello, World!"); | ||
| + | return 0; | ||
| + | } | ||
| + | } | ||
| + | </pre> | ||
| + | <pre class="brush: php; highlight: [5, 15]; html-script: true">// Hello World in Microsoft C# ("C-Sharp"). | ||
| + | |||
| + | using System; | ||
| + | |||
| + | class HelloWorld | ||
| + | { | ||
| + | public static int Main(String[] args) | ||
| + | { | ||
| + | Console.WriteLine("Hello, World!"); | ||
| + | return 0; | ||
| + | } | ||
| + | } | ||
| + | </pre> | ||
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi | http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi | ||
| − | <source lang="php" line start="100" highlight="5"> | + | <source lang="php" line start="100" highlight="5">// Hello World in Microsoft C# ("C-Sharp"). |
| + | |||
| + | using System; | ||
| + | |||
| + | class HelloWorld | ||
| + | { | ||
| + | public static int Main(String[] args) | ||
| + | { | ||
| + | Console.WriteLine("Hello, World!"); | ||
| + | return 0; | ||
| + | } | ||
| + | } | ||
| + | </source> | ||
Revision as of 15:50, 28 June 2009
http://www.lastengine.com/syntax-highlighter-code-colorizer-mediawiki/
// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi <source lang="php" line start="100" highlight="5">// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld {
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
} </source>