Hi all,
Sorry if this is answered elsewhere, but I haven’t found it if it is!
I want to be able to insert a snippet into my code with a parameter in the text, so:
///////// Mod Vx Start
//
//
///////// Mod Vx End
where x is the version number this mod is applied to. I’m guessing that I could make it an environment variable like, say, $MODNO “12.2.3”. So my snippet would then be:
///////// Mod V$MODNO Start
//
//
///////// Mod V$MODNO End
This would mean I would only have to define $MODNO once for each version I was working on. What I can’t figure out is how to set up the environment variable, which would be ideally done through some user input. The documentation says that custom variables are held in a file .sublime-options, but I can’t find one anywhere to use as a template, nor do I know the format for defining an environment variable. Is what I want to do possible, or am I really just talking a load of rubbish?
Or do I have to code up a package to achieve what I want?
Thanks in advance for any comments!
Ali