Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add syntax highlighting to README

  • Loading branch information...
commit 1da35ab75cf3b2c23dc44715ba4339142a9ba58b 1 parent f46595a
Sindre Sorhus authored May 04, 2012

Showing 1 changed file with 26 additions and 20 deletions. Show diff stats Hide diff stats

  1. 46  README.md
46  README.md
Source Rendered
@@ -5,31 +5,37 @@ Works in any browser supporting CSS box-shadow property.
5 5
 
6 6
 ## Basic Usage
7 7
 
8  
-	$(selector).realshadow(); // options are optional
  8
+```javascript
  9
+$(selector).realshadow(); // options are optional
9 10
 
10  
-	$(selector).realshadow({
  11
+$(selector).realshadow({
11 12
 
12  
-		followMouse: false,   // true by default
  13
+	followMouse: false,   // true by default
13 14
 
14  
-		pageX:       x,       // x coordinate of the light source
15  
-		pageY:       y        // y coordinate of the light source
  15
+	pageX:       x,       // x coordinate of the light source
  16
+	pageY:       y        // y coordinate of the light source
16 17
 
17  
-		c: {                  // shadow color
18  
-			r: 1,             // red   channel for shadow
19  
-			g: 1,             // green channel for shadow
20  
-			b: 1,             // blue  channel for shadow
21  
-		}
  18
+	c: {                  // shadow color
  19
+		r: 1,             // red   channel for shadow
  20
+		g: 1,             // green channel for shadow
  21
+		b: 1,             // blue  channel for shadow
  22
+	}
22 23
 
23  
-	});
  24
+});
  25
+```
24 26
 
25 27
 To specify different colors for each element, you can use "rel" attribute:
26 28
 
27  
-	<span rel="r"></span>
28  
-	<span rel="g"></span>
29  
-	<span rel="b"></span>
30  
-	<span rel="rg"></span>
31  
-	<span rel="gb"></span>
32  
-	<span rel="br"></span>
33  
-	<span rel="rgb"></span>
34  
-
35  
-	$('span').realshadow();
  29
+```html
  30
+<span rel="r"></span>
  31
+<span rel="g"></span>
  32
+<span rel="b"></span>
  33
+<span rel="rg"></span>
  34
+<span rel="gb"></span>
  35
+<span rel="br"></span>
  36
+<span rel="rgb"></span>
  37
+```
  38
+
  39
+```javascript
  40
+$('span').realshadow();
  41
+```

0 notes on commit 1da35ab

Please sign in to comment.
Something went wrong with that request. Please try again.