/* * This function is used in conjunction * with the fwrules program to convert * several keywords that appear in the * ASCII output into bold, italics, etc * for more ledgible output. * * Append this file to * /usr/local/share/enscript/enscript.st * * See the fwprint shell script for * more information. * */ state simple_highlight { BEGIN { header (); } END { trailer (); } /<[bB]>/ { bold (true); } /<\/[bB]>/ { bold (false); } /<[iI]>/ { italic (true); } /<\/[iI]>/ { italic (false); } LANGUAGE_SPECIALS { language_print ($0); } }