/** * Name: autobk * Description: autobk input files * Author: Bruce Ravel */ /* Put this file in your ~/.enscript/ directory and try running * enscript -Eautobk * for b&w hardcopy * enscript -Eautobk --color==1 * for color hardcopy * enscript -Eautobk --color==1 -Whtml -o foo.html * for html */ state autobk extends HighlightEntry { /* Comments. */ /[#%!]/ { comment_face (true); language_print ($0); call (eat_one_line); comment_face (false); } /^[ \t]*\*/ { comment_face (true); language_print ($0); call (eat_one_line); comment_face (false); } /* String constants. */ /\b(comment|title)\b/i { string_face (true); language_print ($0); call (eat_one_line); string_face (false); } /* feffit i/o keywords, reff, set, guess, local: */ /\b(chi|data|out|standard|theory|xmu)\b[^\/]/i { reference_face (true); language_print ($0); reference_face (false); } /* feffit keywords: */ /\b(all|bkg(chi|ksp|out|rsp|xmu)|chirsp|d([kq]|atrsp|k[12]|q[12])\ |e([0e]|0f|dge|ef|m(a(mp|x)|in|mid|var|wid))\ |f(ix(e0|the)|orm(at|in|out))|hanning|i(print|window)\ |k(m(ax|in)|w(|eight))|multi|n(knots|norm|or[12m]|rmout)\ |pre([12]|dg(1|e2)|out)|q(m(ax|in)|w(|eight))|r(1st|bkg|max|w(|eight))\ |step|t(he(chi|fix|ksp|rsp)|oler)|w(eight|indow))\b/i { keyword_face (true); language_print ($0); keyword_face (false); } } /* Local variables: mode: c End: */