Created
February 18, 2013 22:33
-
-
Save mhammonds/4981388 to your computer and use it in GitHub Desktop.
Add this snippet of JavaScript to your web browser shortcuts bar to quickly replace all tab characters in a WordPress post with four spaces.
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
javascript:var tab = RegExp("\\t", "g"); | |
document.getElementById("content").value = | |
document.getElementById("content").value.replace(tab,' '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment