Sublime Forum

Snippet for my file like that

#1

Hi everyone, I’m new on sublime text, I need to include a specific header on all my file like that :

/*
** myfile.c for myfile in /home/agonist/path/myfile
**
** Made by MY NAME
** Login
**
** Started on Tue Oct 23 02:51:34 2012 MY NAME
** Last update Tue Oct 23 02:52:35 2012 MY NAME
*/

so it’s ok for the name with extension but not without
ok for the path
ok for my name and my mail…
BUT I don’t know how insert the date, the first date is the current date when you insert the header and the second date is update when you save your file. It’s possible to set this two date ?

Thanks

0 Likes

#2

I think it would not be that difficult to use something like SMART-Snippets to write a snippet to insert dates.

0 Likes