Title: Blogging about source code
Last modified: August 19, 2016

---

# Blogging about source code

 *  [plnelson](https://wordpress.org/support/users/plnelson/)
 * (@plnelson)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/blogging-about-source-code/)
 * I’m starting a blog about programming so it will include lots of code samples–
   mostly XML, Java, and C#. I’m currently using the Preserve Code Formatting plugin
   with its **pre** tags and this works OK. Here’s a link to my current blog-in-
   progress: [http://blog.nelsondev.net/](http://blog.nelsondev.net/)
 * But I’ve noticed a lot of other software blogs have more attractive ways of representing
   code which make it easier to refer to specific lines by using line numbers. Here’s
   an example: [http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-iii-android-services/](http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-iii-android-services/)
 * How can I get that effect in my software blog? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/blogging-about-source-code/#post-1779608)
 * your example link seems to be using: [http://wordpress.org/extend/plugins/wordpress-code-snippet/](http://wordpress.org/extend/plugins/wordpress-code-snippet/)
 * on my site, i am using:
    [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)
 * there are quite a few syntax highlighter plugins in the wordpress plugin directory
 *  Thread Starter [plnelson](https://wordpress.org/support/users/plnelson/)
 * (@plnelson)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/blogging-about-source-code/#post-1779620)
 * Do all of these perform the same function as Preserve Code Formatting – i.e.,
   allowing the blogger to drop in code such as HTML or XML and having WordPress
   not try to interpret it? How can they do that and still have embedded line numbers
   and/or colors?
 * In other words: are there any disadvantages to using those instead of Preserve
   Code Formatting? Or am I not getting what they do?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Blogging about source code’ is closed to new replies.

## Tags

 * [source-code](https://wordpress.org/support/topic-tag/source-code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [plnelson](https://wordpress.org/support/users/plnelson/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/blogging-about-source-code/#post-1779620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
