Posting source code in WordPress

I just noticed a short post from WordPress on How do I post source code?.

Let’s take it for a spin:

C:

main()
  println("hello world");
}

Java:

public class Hello {
public static void main(String [] args) {
System.out.println(“hello world”);
}
}

XML:


<table>
<tr>
<td>label1</td><td>label2</td>
</tr>
<tr>
<td>one</td><td>two</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr>
</table>


HTML:


<p>This is the first line
<ul>Here follows a list
<li>one
<li>two
<li>three
</ul>

A useful feature indeed. Thanks to the kind folks at WordPress for providing it.

Advertisements

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

  • Pages

  • September 2007
    M T W T F S S
    « Aug   Oct »
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
  • RSS The Wayward Word Press

  • Recent Comments

    mrrdev on On being the maintainer, sole…
    daveshields on On being the maintainer, sole…
    James Murray on On being the maintainer, sole…
    russurquhart1 on SPITBOL for OSX is now av…
    dave porter on On being the maintainer, sole…
  • Archives

  • Blog Stats

  • Top Posts

  • Top Rated

  • Recent Posts

  • Archives

  • Top Rated

  • %d bloggers like this: