diff --git field_example/field_example.module field_example/field_example.module
index bb183b1..1d9691a 100644
--- field_example/field_example.module
+++ field_example/field_example.module
@@ -113,10 +113,15 @@ function field_example_field_formatter_view($entity_type, $entity, $field, $inst
   $element = array();
 
   switch ($display['type']) {
-    // This formatter simply outputs the field as text and with a color.
+    // This formatter creates a renderable array containing both the text output
+    // in #markup, and a little bit of HTML in #prefix and #suffix so we can
+    // colorize the text. In a perfect world we'd implement a useful background
+    // color as well, but we're keeping this example simple.
     case 'field_example_simple_text':
       foreach ($items as $delta => $item) {
-        $element[$delta]['#markup'] = '<p style="color: ' . $item['rgb'] . '">' . t('The color code in this field is @code', array('@code' => $item['rgb'])) . '</p>';
+        $element[$delta]['#markup'] = t('The color code in this field is @code', array('@code' => $item['rgb']));
+        $element[$delta]['#prefix'] = '<p style="color: ' . $item['rgb'] . '">';
+        $element[$delta]['#suffix'] = '</p>';
       }
       break;
 
