Plugin:SyntaxHighlight GeSHi
Jump to navigation
Jump to search
Programinio kodo sintaksės paryškinimo plėtinys.
Palaikomų programavimo kalbų sintaksės[keisti]
PHP Pavyzdys[keisti]
Kodas:
<syntaxhighlight lang="php"> <?php $v = "string"; // pavyzdys ?> html text <? echo $v; // php kodo pabaiga ?> </syntaxhighlight>
Rezultatas:
<?php
$v = "string"; // pavyzdys
?>
html text
<?
echo $v; // php kodo pabaiga
?>
Html pavyzdys su spalvomis[keisti]
Kodas:
<syntaxhighlight lang="html4strict" line start="100" highlight="5" enclose="div"> <!--This is a comment. Comments are not displayed in the browser--> <table align=center style="background: ivory;color:maroon;font-style:italic;font-family:arial;font-weight:bold;font-size:10pt;"> <tr><th> Heading 1 </th><th> Heading 2 </th></tr> <tr> <td style="padding:10px;"> This is cell 1 text </td> <td style="padding:10px;"> This is cell 2 text </td> </tr> </table> </syntaxhighlight>
Rezultatas:
100 <!--This is a comment. Comments are not displayed in the browser-->
101 <table align=center style="background: ivory;color:maroon;font-style:italic;font-family:arial;font-weight:bold;font-size:10pt;">
102 <tr><th> Heading 1 </th><th> Heading 2 </th></tr>
103 <tr>
104 <td style="padding:10px;"> This is cell 1 text </td>
105 <td style="padding:10px;"> This is cell 2 text </td>
106 </tr>
107 </table>