Detect syntax by first line
Declare normal and string attributes automatically