Detect the indentation of some code. Useful if you need to persist indentation or have new content match existing indentation.