@see http://bbeditextras.org/wiki/index.php?title=Text_Filters
Text filter folder path:
~/Library/Application Support/BBEdit/Text Filters
@see http://bbeditextras.org/wiki/index.php?title=Text_Filters
Text filter folder path:
~/Library/Application Support/BBEdit/Text Filters
#!/usr/bin/python | |
import fileinput | |
import json | |
print json.dumps( json.loads(''.join([line.strip() for line in fileinput.input()])), sort_keys=True, indent=2) |
#!/usr/bin/php | |
<?php | |
$data = file_get_contents('php://stdin'); | |
$json = json_decode($data); | |
if ($json == null) { | |
// Problem decoding json | |
return $data; | |
} | |
echo json_encode($json, JSON_PRETTY_PRINT); |
#!/usr/bin/php | |
<?php | |
$source = file_get_contents('php://stdin'); | |
echo serialize($source); |
#!/usr/bin/php | |
<?php | |
$source = file_get_contents('php://stdin'); | |
$unserialized = unserialize($source); | |
if ($unserialized === FALSE) { | |
echo $source; | |
} | |
print_r($unserialized); |
#!/usr/bin/php | |
<?php | |
$source = file_get_contents('php://stdin'); | |
$unserialized = unserialize($source); | |
if ($unserialized === FALSE) { | |
echo $source; | |
} | |
var_dump($unserialized); |
#!/bin/sh | |
XMLLINT_INDENT=$'\t' xmllint --format --encode utf-8 - |