Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. class Rectangle(Blob):
  2.       def __init__(self, width, height,
  3.                    color='black', emphasis=None, highlight= 0):
  4.           if width ==  0 and height ==  0 and \
  5.              color == 'red' and emphasis == 'strong' or \
  6.              highlight > 100:
  7.               raise ValueError("sorry, you lose")
  8.           if width ==  0 and height ==  0 and (color == 'red' or
  9.                                              emphasis is None):
  10.               raise ValueError("I don't think so -- values are %s, %s" %
  11.                                (width, height))
  12.           Blob.__init__(self, width, height,
  13.                         color, emphasis, highlight)




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012