I originally wrote this page to help a friend who had to make frequent changes to a massive CSS file. I've now generalized it hoping to make it usable by anyone who likes to be prompted for file changes.
Edit your file to add prompts according to the instructions near the bottom of this page. Whenever you wish to make changes to the file, copy-and-paste its content into the upper box below; change the prefix, suffix, and check boxes as needed; and select the "Go" button. The program will prompt you for the new values and will then display the result in the lower box. You may then copy-and-paste the result back to the original file or into a new file.
Select any question mark (?) for help with that item.
Instructions:
Your file will be processed one line at a time, so anything to be changed must be totally contained on a single line. Each change line must contain the value prefix character(s), the value to be changed, the value suffix character(s), the prompt prefix character(s), the prompt itself, the prompt suffix character(s), and any other characters that come before, after, or between the old value and the prompt. Each time a prompt is encountered, the prompt and your response to it are stored so that the program can simply recall that response rather than reprompting when the same prompt occures again. The following is an example file.
/* updated on :;~@Date~ at :;~@Time~ by :;~MyName~ */
body {
background-color: #ffffcc; /* ~Main Background Color~ */
color: black; /* ~Text Color~ */
direction: ltr;
}
.caption {
color: red; /* ~Caption Color~ */
background-color: pink;
}
.highlight {
color: #000000; /* ~Text Color~ */
background-color: #ffff99; /* ~Highlight Color~ */
}
*:focus {
background-color: #ccffff; /* ~Focus Background Color~ */
color: #000000; /* ~Text Color~ */
}
The following "prompts" and "responses" are predefined. You may use any combination of upper-case and lower-case letters that you wish.
@Date year-month-date ex: 2011-02-09 @DateMDY month-date-year ex: 02-09-2011 @DateDMY date-month-year ex: 09-02-2011 @DateTag YYYYMMDD no delimiters ex: 20110209 @Month month name ex: February @MonthABR month abbreviation ex: Feb @Day day name ex: Wednesday @DayABR day abbreviation ex: Wed @Time hours24:minutes:seconds ex: 20:55:09 @TimeAM hours12:minutes:secondsam ex: 08:55:09pm @TimeTag HHMMDD no delimiters ex: 205509
You may "predefine" additional items yourself by adding them to the location line. Such items are case-sensitive.
http://.../jaa_kcd3.htm?MyName=James&e-mail=jim@example.com