Created
August 18, 2009 14:27
-
-
Save veryhappythings/169739 to your computer and use it in GitHub Desktop.
Pretty print command for textmate. Works in extremely limited situations!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import os | |
import pprint | |
import sys | |
input = os.environ.get('TM_SELECTED_TEXT') | |
input = input.replace("'", '"') | |
sys.stdout.write(pprint.pformat(json.loads(input))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment