Difference between revisions of "Syntaxhighlight"
From HackerNet
Helikopter (talk | contribs) m (yaml) |
m |
||
Line 3: | Line 3: | ||
<code><nowiki><syntaxhighlight lang="php">Kod här</syntaxhighlight></nowiki></code> | <code><nowiki><syntaxhighlight lang="php">Kod här</syntaxhighlight></nowiki></code> | ||
− | <syntaxhighlight lang="php"> | + | <syntaxhighlight lang="php" line highlight=6> |
<html> | <html> |
Revision as of 12:51, 20 March 2019
För att highlighta tex en php kod måste man använda source editorn och skriva
<syntaxhighlight lang="php">Kod här</syntaxhighlight>
1 <html>
2 <head>
3 <title>PHP Test</title>
4 </head>
5 <body>
6 <?php echo '<p>Hello World</p>'; ?>
7 </body>
8 </html>