diff --git a/lib/formalist/elements/standard/text_area.rb b/lib/formalist/elements/standard/text_area.rb
index <HASH>..<HASH> 100644
--- a/lib/formalist/elements/standard/text_area.rb
+++ b/lib/formalist/elements/standard/text_area.rb
@@ -7,6 +7,7 @@ module Formalist
     class TextArea < Field
       attribute :text_size, Types::String.enum("xsmall", "small", "normal", "large", "xlarge"), default: "normal"
       attribute :box_size, Types::String.enum("single", "small", "normal", "large", "xlarge"), default: "normal"
+      attribute :code Types::Bool
     end
 
     register :text_area, TextArea
diff --git a/lib/formalist/elements/standard/text_field.rb b/lib/formalist/elements/standard/text_field.rb
index <HASH>..<HASH> 100644
--- a/lib/formalist/elements/standard/text_field.rb
+++ b/lib/formalist/elements/standard/text_field.rb
@@ -6,6 +6,7 @@ module Formalist
   class Elements
     class TextField < Field
       attribute :password, Types::Bool
+      attribute :code Types::Bool
     end
 
     register :text_field, TextField
Add `code` attributes to text-type fields.