Testing plugins in WordPress

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

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


      
          
              
                  
                      
 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
                    
                  
              
          
      

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

Code Colorer
[code lang="c"]]czoyODU6XCINCnZvaWQgUHJpbnRBZHJlc3MoKQ0Kew0KZm9yIChpbnQgbD0wOyBsICZsdDtsaXZjb2wuZ2V0TnVtTGFtcHMoKTsgbCt7WyYqJl19KykNCnsNCmlmIChsaXZjb2wuZ2V0TGFtcChsLGFkcmVzcykpDQp7DQpTZXJpYWwucHJpbnQoXCJbXCIpOw0KU2VyaWFsLnByaW50KGwpe1smKiZdfTsNClNlcmlhbC5wcmludChcIl0gXCIpOw0KZm9yIChpbnQgeD0wOyB4Jmx0Ozk7IHgrKykNCnsNClNlcmlhbC5wcmludChhZHJlc3NbeHtbJiomXX1dLCBIRVgpOw0KU2VyaWFsLnByaW50KFwiLCBcIik7DQp9DQpTZXJpYWwucHJpbnRsbihcIlwiKTsNCn0NCn0NCn0NClwiO3tbJiomXX0=[[/code]

SyntaxHighlighter Evolved

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("");
    }
  }
}

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.

Notes: 3

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.