Created
September 9, 2011 08:45
-
-
Save wolframkriesing/1205782 to your computer and use it in GitHub Desktop.
Komodo macro: replace a selected string 's' with 'JSON.stringify("s")'
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
// This is a macro for the IDE Komodo http://www.activestate.com/komodo-edit | |
var s = ko.views.manager.currentView.scimoz; | |
// If nothing was selected use {} ... dont know if useful, but we will see. | |
s.replaceSel("JSON.stringify("+ (s.selText || "{}") +")"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment