Google Syntax Highlighter

syntax highlight

Google Syntax Highlighter Plugin adalah plugin WordPress yang berguna untuk meng-highlight syntax. Dibuat oleh Alex Gorbatchev dan semuanya berbasiskan javascript.

Demonya:

Some HTML example

Download pluginnya di sini : http://wordpress.org/extend/plugins/google-syntax-highlighter/

Instalasinya:

  1. Extract donlotan di atas ke folder wp-content/plugins
  2. Aktifkan plugin Google Syntax Highlighter via WP-Admin

Contoh penggunaannya:

    ... some code here ...
    Buka dengan tag <pre>,
    kasih atribut "name" dengan value "code".
    kasih juga atribut class,
    valuenya sesuai dengan alias dari bahasa code
    yang akan digunakan.

Daftar aliasnya:

Language Aliases
C++ cpp, c, c++
C# c#, c-sharp, csharp
CSS css
Delphi delphi, pascal
Java java
Java Script js, jscript, javascript
PHP php
Python py, python
Ruby rb, ruby, rails, ror
Sql sql
VB vb, vb.net
XML/HTML xml, html, xhtml, xslt

Lebih detail lagi di sini : http://code.google.com/p/syntaxhighlighter/wiki/Usage

Tulisan Lainnya:

  1. Google Gears
  2. Mulai Belajar CSS: Syntax
This entry was posted in About Web and tagged , , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">