Add a palette export script which allows exporting palettes to .css, .php, .py, .txt and .java by adding a Export to menu item in the palette context menu in the Palettes dockable.