This is something I really miss from a few years ago when I was using Cg to do my shaders. It had (what I would consider) fairly basic features like #include and the ability to specify texture states and so on within the shader file. Now I have to do all of that manually, or write my own preprocessor or something...