Skip to content

Instantly share code, notes, and snippets.

@wjgilmore
Created October 7, 2010 17:58
Show Gist options
  • Save wjgilmore/615545 to your computer and use it in GitHub Desktop.
Save wjgilmore/615545 to your computer and use it in GitHub Desktop.
$<
lines = $GEDIT_SELECTED_TEXT.split("\n")
output = ""
lineNumber = 1
for line in lines:
output += str(lineNumber).zfill(2) + " " + line + "\n"
lineNumber += 1
return output
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment