How would I do this? Whenever I save a file, I would like Notepad++ to:
- Find a line in my header near the top of the file that looks like "DateTime: ${stuff}$" and insert the current date/time (short format aka CTRL-SHIFT-F4) between the DOLLARSIGNS.
- Find a line near the top that looks like "Change: ${number}$" and increment the integer value between the DOLLARSIGNS.
- THEN save the file.
The net result is that every time I use the "Save File" keystroke/action, the file has the current date/time, and the "Change" number gets bumped.
Before saving the file:
/*
Author: [email protected]$
DateTime: $$
File: $C:\Users\usr\source\sql\Role_Assignment_Details.sql$
Change: $1$
*/
After saving the file:
/*
Author: [email protected]$
DateTime: $2:42 PM 7/26/2024$
File: $C:\Users\usr\source\sql\Role_Assignment_Details.sql$
Change: $2$
*/
I don't even know where to begin.