Contoh Penulisan syntax highlighter Code pada Blog WordPress.Com
Agustus 8, 2009
Berikut ini adalah contoh penulisan syntax highlighter Code pada Blog WordPress.Com. Penjelasan tentang bagaimana menghighlight kode-kode yang akan dituliskan seperti PHP, HTML, CSS, Ruby, dan lain-lain telah dijelaskan pada artikel Menulis Syntax Highlighter Kode pada Blog WordPress.com di Rismaka.Net.
Penggunaan syntax highlighter berfungsi agar kode-kode yang kita tulis dapat terlindungi karakternya oleh filter yang ada pada engine wordpress. Berikut adalah contoh hasil penulisannya:
< ?php get_header();?>
<div id="filler" class="fix">
<div id="mainColumn">
< ?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="postMeta">
<p class="container">
<span class="date">< ?php the_time('M j, Y') ?></span>
<span class="comments">< ?php comments_popup_link('0', '1', '%'); ?></span>
</p>
</div>
<h2><a href="<?php the_permalink() ?>" title="< ?php the_title(); ?>">< ?php the_title() ?></a></h2>
<div class="entry">
< ?php the_excerpt(); ?>
</div>
</div>
< ?php endwhile; ?>
< ?php else : ?>
<div class="post">
<div class="postMeta">
<p class="container">
<span class="date">No Matches</span>
</p>
</div>
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no matching results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
</div>
</div>
< ?php endif; ?>
<div id="paginateIndex" class="fix">
<p><span class="left">< ?php previous_posts_link('« Previous') ?></span> <span class="right">< ?php next_posts_link('Next »') ?></span></p>
</div>
</div>
< ?php include (TEMPLATEPATH . '/second.column.index.php'); ?>
< ?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
</div>
< ?php get_footer(); ?>
Entry Filed under: Uncategorized. Tag: artikel, kode, php, syntax highlighter, wordpress.


1.
lawliet90 | Agustus 9, 2009 at 8:33 am
pucink……
2.
kyuutaro | Agustus 10, 2009 at 7:41 am
Mantap! langsung dicoba
Jadi nambah ilmu lagi nih, walaupun kecil kemungkinan dipakai di blogku
3. Menulis Syntax Highlighter pada Blog WordPress.com | RISOFTE | Agustus 10, 2009 at 5:10 pm
[...] hasil penulisannya bisa kita lihat di contoh penulisan syntax highlighter di Rismaka On [...]
4.
Yep | September 1, 2009 at 4:00 pm
He…he…ketemu juga dah
5.
fathur | September 19, 2009 at 12:17 am
iyah ketemh !!!
6.
fathur | September 19, 2009 at 12:09 am
keren !!!!!!!!!!
ini dia yg sayah cari
7.
ryankharisma88 | November 19, 2009 at 6:47 am
Infonya bermanfaat, terima kasih. Salam Persahabatan. . .
(By: http://ryankharisma88.wordpress.com)