Difference between revisions of "Syntax Highligh"

From Catglobe Wiki
Jump to: navigation, search
(Created page with 'This extension adds the <source> tag to present formatted source code On the wiki page, you can now use "source" elements:<source lang="php"> <?php $v = "string"; // sampl…')
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
This extension adds the <source> tag to present formatted source code
+
This extension adds the tag to present formatted source code<br>
On the wiki page, you can now use "source" elements:<source lang="php">
+
On the wiki page, you can now use "source" elements
<?php
+
For example:<br>
    $v = "string";    // sample initialization
+
<nowiki><source lang="xml">
?>
+
// your code here
html text
+
</source></nowiki><br>
<?
+
Support most common language code: csharp,asp, java, java5; sql, xml, php and ...
    echo $v;        // end of php code
 
?>
 
</source>
 
  
 
+
[[category:Wiki guidelines]]
 
 
[[category:Wiki guidelines]]
 

Latest revision as of 11:30, 25 November 2009

This extension adds the tag to present formatted source code
On the wiki page, you can now use "source" elements For example:
<source lang="xml"> // your code here </source>
Support most common language code: csharp,asp, java, java5; sql, xml, php and ...