Note: I'm new to python and also sublime /macros etc so sry if this is a very simple / complicated question..
I'm trying to do some text processing via macros, I'd like to copy some text into the text editor and then process each line that has been pasted ie:
- for the first line I would do an insert snippet command (<h1>${<0:$SELECTION}</h1>) - (requires knowing beginning line number when pasted)
- for the rest of each line pasted i would do another insert snippet command (<p>${<0:$SELECTION}</p>) until i reach the end of all the pasted lines - (requires knowing last pasted line number)
If some could help it would be much appreciated,
many thanks