Replace row numbers from copied code
This has nothing to do with SharePoint but I wanted to share the trick. When you copy code from some pages sometimes you have to copy the ugly row numbers, like
1: function XYZ
2:{
3: var a = b;
You can delete these numbers easily with NotePad++ or another higher TextEditor. I use NotePad++ so I'll show you have I do that with NP.
1: function XYZ
2:{
3: var a = b;
You can delete these numbers easily with NotePad++ or another higher TextEditor. I use NotePad++ so I'll show you have I do that with NP.
- Copy the code into the editor
- Open the "Replace" dialog
- Check "Regular Expression"
- Enter the regular expression in "Find What" = \d*: (This can be any other regex)
- Enter nothing into "Replace String"
Comments