I am abusing the C preprocessor for my build system to create a readme text file and a web page from the same source file. The design looks something like this:
Actual definitions are in data.h:
#define WEBSITE "http://example.com"
Please note that //the URL must be specified, otherwise it will be considered as the beginning of the comment. A similar problem occurs when used ,in an argument; quotes are needed, otherwise the comma will be considered as a separator of arguments.
Using this header, the file is readme.txt.pplaunched through the C preprocessor :
#include "data.h"
Visit the website at WEBSITE!
Of course, the output of the preprocessor:
Visit the website at "http://example.com"!
. , :
Visit the website at http://example.com!
Visual ++ 2008. , ; , V++, . ( XML XSLT, XML , -.)