Posting source code on [sourcecode language="css"] [/sourcecode]

While doesn’t allow you to use potentially dangerous code on your blog, there is a way to post source code for viewing. We have created a shortcode you can wrap around source code that preserves its formatting like the code below. Notice the shortcode goes in square brackets not angle brackets, and the code language must be specified if you want highlighting.
Full details here:-

/* Example 31.1 - Arduino internal EEPROM demonstration > chapter 31 | CC by-sa-nc */
int zz;
int EEsize = 1024; // size in bytes of your board's EEPROM
void setup()
void loop()
  for (int a=0; a<EEsize; a++)
    zz =;
    Serial.print("EEPROM position: ");
    Serial.print(" contains ");
This entry was posted in Wordpress. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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