Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

syntax highlight support

  • Loading branch information...
commit fbd1bf632f78bd3692638c747b8a5dc1c5ef7411 1 parent 3a29ef6
authored

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 10  README.md
10  README.md
Source Rendered
@@ -16,12 +16,17 @@
16 16
 
17 17
 ## PatternValidator 
18 18
 
  19
+```php
  20
+<?php
19 21
     $validator = new PatternValidator( '#test test test#' );
20 22
     $bool = $validator->validate( $value );
21 23
     $msgs = $validator->getMessages();
  24
+```
22 25
 
23 26
 ## StringValidator
24 27
 
  28
+```php
  29
+<?php
25 30
     $validator = new StringValidator(array( 
26 31
             'starts_with' => '....' , 
27 32
             'ends_with' => ... ,
@@ -31,9 +36,12 @@
31 36
         ));
32 37
     $bool = $validator->validate( $string );
33 38
     $msgs  = $validator->getMessages();
  39
+```
34 40
 
35 41
 ## RangeValidator
36 42
 
  43
+```php
  44
+<?php
37 45
     $validator = new RangeValidator(array(
38 46
         'greater_than' => 100,
39 47
         'less_than' => 200,
@@ -42,7 +50,7 @@
42 50
 
43 51
     $validator = new RangeValidator(array( '>' => 10 , '<' => 200 ));
44 52
     $bool = $validator->validate( 10.0 );
45  
-
  53
+```
46 54
 
47 55
 # Hacking
48 56
 

0 notes on commit fbd1bf6

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