Hello,
I want to parse a ruby config of a window manager which utilizes hashes. Is there a way to get a fancier ouput than this?
Template:
···
-------------
#
# == Options
#
# Following options change behaviour and sizes of the window manager:
#
OPTIONS = {
# Border size in pixel of the windows
:border => 2,
# Window move/resize steps in pixel per keypress
:step => 5,
# Window screen border snapping
:snap => 10,
# Default starting gravity for windows
:gravity => :center,
# Make transient windows urgent
:urgent => true,
# Enable respecting of size hints globally
:resize => false,
# Screen size padding (left, right, top, bottom)
:padding => [ 0, 0, 0, 0 ],
# Font string (see xfontsel)
:font => "-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
}
Output:
-----------
OPTIONS = { # Border size in pixel of the windows :border => 2, # Window move/resize steps in pixel per keypress :step => 5, # Window screen border snapping :snap => 10, # Default starting gravity for windows :gravity => :center, # Make transient windows urgent :urgent => true, # Enable respecting of size hints globally :resize => false, # Screen size padding (left, right, top, bottom) :padding => [ 0, 0, 0, 0 ], # Font string (see xfontsel) :font => "-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*" }