Skip to content

Instantly share code, notes, and snippets.

@CraigWilliams
Created February 20, 2011 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CraigWilliams/835712 to your computer and use it in GitHub Desktop.
Save CraigWilliams/835712 to your computer and use it in GitHub Desktop.
Xcode - Wraps selected text with comment and pragma mark
#!/usr/bin/ruby
var = STDIN.read.upcase
print "
//---------------------------------------------
// #{var}
//---------------------------------------------
#pragma mark -
#pragma mark #{var}\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment