Unique ID and CSS Class properties for fields in field editor and columns in table

In order to place a custom class or id on a field in a field editor or column in a table, a custom snippet is required.  Being able to set these through the declarative would be of great value!