Posted by: JakartaTraveller.com | December 14, 2010

Syntax Highlighter pada WordPress.com

Thanks to army hehe dah lama nyari cara biar Syntax Highlighter di wordpress.com, coz biasanya download dulu plugin wp-codebox trus baru di install di wordpress yang dah kita hosting… heheh

ternyata cara untuk nampilinnya sangat sederhana, kita cukup nambahin tag (sourcecode language=”php”) dan diakhiri dengan (/sourcecode) tapi tanda ‘(‘ dan ‘)’ tanpa tanda kutip di ganti jadi [ dan ] ok..

bentuk penulisannya :
(sourcecode language=”php”)
kode program anda
(/sourcecode)

Syntax Highlighter ngedukung code :

* bash
* cpp
* csharp
* css
* delphi
* html
* java
* jscript
* php
* python
* ruby
* shell
* sql
* vb
* xml

hasilnya kayak gini :

<?php

echo"ini contohnya ^^";

?>

met coba ^^


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: