Posting some perl code.
[code syntax="Perl"]
use Text::Textile;
my $tex = Text::Textile->new();
my $htm=$tex->process('*zomg*');
print $htm."\n";
[/code]
and some C code
[code syntax="CPP"]
#include
int main(void) {
printf("hello world!\n");
return 0;
}
[/code]
Some CSS
[code syntax="CSS"]
.code {
border: 1px solid;
min-height: 60px;
background-color: #eae7de;
}
.code .key1 {
color: #0000FF;
}
.code .key2 {
color: #0000FF;
}
.code .string {
color: #14a042;
}
[/code]
Some HTML
[code syntax="HTML"]hello world
[/code]
Some SQL code
[code syntax="SQL"]
select * from people where IQ > 100;
[/code]
And here is me quoting some text.
At the moment whenever I read the news I am angry at the newspapers and the government for scaremongering, wasting my tax dollars^Wpounds on stupid ideas and not generally not being reasonable.
As you can see, syntax highlight has been added to this blog. Supports a plethora of languages thanks to Text::Highlight.
Posting some Perl Code's RSS feed