lib/debug_extras/settings.rb in debug-extras-0.2.0 vs lib/debug_extras/settings.rb in debug-extras-0.3.0

- old
+ new

@@ -1,9 +1,35 @@ module DebugExtras module Settings class << self def ap_options - { html: true, color: { array: :red } } + { html: true, color: { array: :yellowish } } end + + def ap_styles(tag) + { + pre: { + "background" => "#f5f8fa", + "border" => "1px solid #ccc", + "border-radius" => "0", + "color" => "#111", + "font-family" => "Menlo, Consolas, Ubuntu, monospace", + "font-weight" => "bold", + "font-size" => "12px", + "line-height" => "1.43", + "margin" => "0 0 10px", + "padding" => "10px", + "white-space" => "pre-wrap", + }, + kbd: { + "background" => "none", + "box-shadow" => "none", + "font-family" => "Menlo, Consolas, Ubuntu, monospace", + "font-weight" => "bold", + "font-size" => "12px", + "padding" => "2px 4px" + } + }[tag] + end end end -end \ No newline at end of file +end