Tommi Mäkitalo <tommi@...> writes: > Sorry - here is version 2 (tested this time): > > #!/usr/bin/sed -f > > s_<!--%cpp>_<%cpp>_g > s_</%cpp-->_</%cpp>_g > > Tommi
Here's what I've got: #!/bin/sed -f # Extra ECPP tags. # See http://thread.gmane.org/gmane.comp.web.server.tntnet/363/focus=888 s_<!--%cpp>_<%cpp>_g s_</%cpp-->_</%cpp>_g s_<!--%pre>_<%pre>_g s_</%pre-->_</%pre>_g s_<!--%args>_<%args>_g s_</%args-->_</%args>_g s_<!--%init>_<%init>_g s_</%init-->_</%init>_g s_<!--%request>_<%request>_g s_</%request-->_</%request>_g # JavaScript needs special /*-compatible syntax. # Example: /*cpp if (true) { cpp*/ var jsCode; /*cpp } cpp*/ s_\/\*cpp_<{_g s_cpp\*\/_}>_g # </%def> is not recognized as the closing tag by HTML editors (e.g. Aptana, WebStorm 6.0.1) s_<ecppDef_<%def_g s_</ecppDef>_</%def>_g # Useful for embedding C++ code in tags. # Example: <input type="radio" ecpp=' if (true) reply.out() << "checked=\"checked\""; ecpp' /> s_ecpp='_<{_g s_ecpp'_}>_g That helped me fix all the WebStorm errors. The <!--%cpp> tags aren't that important because one can do <!--<%cpp>, but the <ecppDef>, ecpp=' and /*cpp tags are the real necessity. ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
