new setting + bug fix #115

I needed a way to customise the format via data attribute so I have added prettifyWith setting to allow custom string to be used in prettify function. This is only applied when the prettify setting is true and defaults to an single space which is the current functionality in the master branch.

I have also added a fix for bug #115 that I raised last week.