WP-Syntax is a syntax highlighter for WordPress. Not sure if i like it..
Code Colorer is a different syntax coloror
WP-Syntax and are both based on Code Colorer GeSHi
SyntaxHighlighter Evolved is does the Syntax Highlighting in Javascript and is based on SyntaxHighlighter from Alex Gorbatchev
Let’s compare the options:
XML / GML
WP-Syntax
222589.799 433765.081 222567.148 433755.043 222555.526 433748.222
222553.978 433747.425 222540.611 433739.534 222539.611 433722.180
222566.459 433681.207 222575.316 433666.027 222584.647 433670.364
222586.846 433671.386 222595.805 433676.184 222605.758 433681.096
222630.792 433693.222 222634.298 433694.711 222644.841 433699.628
222663.798 433708.937 222589.799 433765.081
Code Colorer
[cc lang=”xml” line=”1″]
222589.799 433765.081 222567.148 433755.043 222555.526 433748.222
222553.978 433747.425 222540.611 433739.534 222539.611 433722.180
222566.459 433681.207 222575.316 433666.027 222584.647 433670.364
222586.846 433671.386 222595.805 433676.184 222605.758 433681.096
222630.792 433693.222 222634.298 433694.711 222644.841 433699.628
222663.798 433708.937 222589.799 433765.081
[/cc]
SyntaxHighlighter Evolved
[xml escaped=”false” line=”1″]
222589.799 433765.081 222567.148 433755.043 222555.526 433748.222
222553.978 433747.425 222540.611 433739.534 222539.611 433722.180
222566.459 433681.207 222575.316 433666.027 222584.647 433670.364
222586.846 433671.386 222595.805 433676.184 222605.758 433681.096
222630.792 433693.222 222634.298 433694.711 222644.841 433699.628
222663.798 433708.937 222589.799 433765.081
[/xml]
File inliner + Code colorer
[file lang=”xml” start=”1″ end=”18″ link=”on” preserveformat=”on”]http://www.knutsel.org/wp-content/uploads/2011/08/gml_example.xml_.txt[/file]
WP-Syntax
void PrintAdress()
{
for (int l=0; l<livcol.getNumLamps(); l++)
{
if (livcol.getLamp(l,adress))
{
Serial.print("[");
Serial.print(l);
Serial.print("] ");
for (int x=0; x<9; x++)
{
Serial.print(adress[x], HEX);
Serial.print(", ");
}
Serial.println("");
}
}
}
Code Colorer
void PrintAdress()
{
for (int l=0; l <livcol.getNumLamps(); l++)
{
if (livcol.getLamp(l,adress))
{
Serial.print("[");
Serial.print(l);
Serial.print("] ");
for (int x=0; x<9; x++)
{
Serial.print(adress[x], HEX);
Serial.print(", ");
}
Serial.println("");
}
}
}
SyntaxHighlighter Evolved
[sourcecode language=”c”]
void PrintAdress()
{
for (int l=0; l
<livcol.getNumLamps(); l++)
{
if (livcol.getLamp(l,adress))
{
Serial.print("[");
Serial.print(l);
Serial.print("] ");
for (int x=0; x<9; x++)
{
Serial.print(adress[x], HEX);
Serial.print(", ");
}
Serial.println("");
}
}
}
[/sourcecode]
File inliner + Code colorer
[file lang=”c” start=”1″ end=”10″ link=”on” preserveformat=”on”]http://www.knutsel.org/wp-content/uploads/2011/08/c-example.c[/file]
Knspr-ImgNote lets you put notes on images.