Code Syntax Highlighting in WordPress

Install the Crayon Syntax Highlighter through the WordPress Admin dashboard: Plugins -> Add New -> Search Plugins

Code:

<pre class="theme:neon toolbar:2 nums:false plain:false scroll:true lang:ps mark:5 decode:true">

a@a:~$ ls -l
total 972
lrwxrwxrwx 1 a a     44 2012-03-12 08:41 data -> /remote-server/data/
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Desktop
drwxrwxr-x 2 a a   4096 2012-03-27 13:21 docs
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Documents
drwxr-xr-x 2 a a   4096 2012-04-05 18:02 Downloads
-rw-r--r-- 1 a a    179 2012-03-12 08:31 example.py
drwx------ 3 a a   4096 2012-03-27 13:21 dev
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Move
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Public
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Templates

</pre>

Result:

a@a:~$ ls -l
total 972
lrwxrwxrwx 1 a a     44 2012-03-12 08:41 data -> /remote-server/data/
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Desktop
drwxrwxr-x 2 a a   4096 2012-03-27 13:21 docs
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Documents
drwxr-xr-x 2 a a   4096 2012-04-05 18:02 Downloads
-rw-r--r-- 1 a a   179  2012-03-12 08:31 example.py
drwx------ 3 a a   4096 2012-03-27 13:21 dev
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Move
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Public
drwxr-xr-x 2 a a   4096 2012-03-12 08:30 Templates

Comments

Leave a Reply

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