[cc lang="cpp"]
// this is a syntax highlighting test
#include
#define BLAH “blah”
const float pi = 3.14; /* yum */
typedef struct Foo {
char * bar;
} Foo;
void nothing() {
int useless; // test
}
/* this is a comment
* yay */
int main() {
char * message = “hello world\n”;
printf(message);
nothing();
for( int i = 0; i < 5; i++) {
fprintf(stderr, “%i\n”, i);
break;
}
return null;
}
[/cc]
codecolorer test 2
August 19th, 2008 § 2 comments § permalink
wp-chili test
August 9th, 2008 § 0 comments § permalink
[[code class="cplusplus"]]czo0NjE6XCINCi8vIHRoaXMgaXMgYSBzeW50YXggaGlnaGxpZ2h0aW5nIHRlc3QNCiNpbmNsdWRlICZsdDtzdGRpby5oJmd0Ow0KI2R7WyYqJl19ZWZpbmUgQkxBSCBcImJsYWhcIg0KY29uc3QgZmxvYXQgcGkgPSAzLjE0OyAgLyogeXVtICovDQp0eXBlZGVmIHN0cnVjdCBGb28gew0Ke1smKiZdfSAgICBjaGFyICogYmFyOw0KfSBGb287DQp2b2lkIG5vdGhpbmcoKSB7DQogICAgaW50IHVzZWxlc3M7ICAvLyB0ZXN0DQp9DQovKiB7WyYqJl19dGhpcyBpcyBhIGNvbW1lbnQNCiAqIHlheSAqLw0KaW50IG1haW4oKSB7DQogICAgY2hhciAqIG1lc3NhZ2UgPSBcImhlbGxvIHdvcmx7WyYqJl19ZFxcblwiOw0KICAgIHByaW50ZihtZXNzYWdlKTsNCiAgICBub3RoaW5nKCk7DQogICAgZm9yKCBpbnQgaSA9IDA7IGkgJmx0OyA1OyBpe1smKiZdfSAgKSB7DQogICAgICAgIGZwcmludGYoc3RkZXJyLCBcIiVpXFxuXCIsIGkpOw0KICAgICAgICBicmVhazsNCiAgICB9DQogICAgcmV0dXJ7WyYqJl19biBudWxsOw0KfQ0KXCI7e1smKiZdfQ==[[/code]]
wp-syntax test
August 9th, 2008 § 0 comments § permalink
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | // this is a syntax highlighting test #include <stdio.h> #define BLAH "blah" const float pi = 3.14; /* yum */ typedef struct Foo { char * bar; } Foo; void nothing() { int useless; // test } /* this is a comment * yay */ int main() { char * message = "hello world\n"; printf(message); nothing(); for( int i = 0; i < 5; i++) { fprintf(stderr, "%i\n", i); break; } return null; } |
syntax highlighter plus test
August 9th, 2008 § 0 comments § permalink
[cpp]
// this is a syntax highlighting test
#include &lt;stdio.h&gt;
#define BLAH &quot;blah&quot;
const float pi = 3.14; /* yum */
typedef struct Foo {
char * bar;
} Foo;
void nothing() {
int useless; // test
}
/* this is a comment
* yay */
int main() {
char * message = &quot;hello world\n&quot;;
printf(message);
nothing();
for( int i = 0; i &lt; 5; i++) {
fprintf(stderr, &quot;%i\n&quot;, i);
break;
}
return null;
}
[/cpp]
google code colorer test
August 9th, 2008 § 0 comments § permalink
[[pre name="code" class="c:firstline[10]:collapse:showcolumns”]]czo0OTI6XCINCi8vIHRoaXMgaXMgYSBzeW50YXggaGlnaGxpZ2h0aW5nIHRlc3QNCiNpbmNsdWRlICZsdDtzdGRpby5oJmd0OzsNCiN7WyYqJl19ZGVmaW5lIEJMQUggJnF1b3Q7YmxhaCZxdW90Ow0KY29uc3QgZmxvYXQgcGkgPSAzLjE0OyAgLyogeXVtICovDQp0eXBlZGVmIHN0cntbJiomXX11Y3QgRm9vIHsNCiAgICBjaGFyICogYmFyOw0KfSBGb287DQp2b2lkIG5vdGhpbmcoKSB7DQogICAgaW50IHVzZWxlc3M7ICAvLyB0e1smKiZdfWVzdA0KfQ0KLyogdGhpcyBpcyBhIGNvbW1lbnQNCiAqIHlheSAqLw0KaW50IG1haW4oKSB7DQogICAgY2hhciAqIG1lc3NhZ2UgPSB7WyYqJl19JnF1b3Q7aGVsbG8gd29ybGRcXG4mcXVvdDs7DQogICAgcHJpbnRmKG1lc3NhZ2UpOw0KICAgIG5vdGhpbmcoKTsNCiAgICBmb3IoIGl7WyYqJl19bnQgaSA9IDA7IGkgJmx0OyA1OyBpICApIHsNCiAgICAgICAgZnByaW50ZihzdGRlcnIsICZxdW90OyVpXFxuJnF1b3Q7LCBpKTsNCiB7WyYqJl19ICAgICAgIGJyZWFrOw0KICAgIH0NCiAgICByZXR1cm4gbnVsbDsNCn0NClwiO3tbJiomXX0=[[/pre]]