Am 31.03.2013 20:34, schrieb Tommi Mäkitalo:
> Am 31.03.2013 20:00, schrieb ArtemGr:
>> Tommi Mäkitalo <tommi@...> writes:
>>> The other suggestion is to add html-comment markers to the tags. So e.g.
>>> <%cpp>...</%cpp> may be written as <!--%cpp>...</%cpp-->. Ecpp-files may be
>>> then edited using ordinary html editors,
>> That would be very helpful!
>> Also <!--{>...<}-->
>>
>>> My co-worker, who suggested it, uses already this html-comment style using a
>>> sed script to translate the pages before running ecppc, so it is already
>>> somewhat tested in practice.
>> Can he share it?
> he can't share it but put this into a suitable file e.g. ecpppre and
> make it executable. You can add your own stuff easily:
>
> #!/usr/bin/sed -e
>
> s_<!--%cpp>_<%cpp>_g
> s_<%/cpp-->_<%/cpp>_g
>
> The you can run something like:
>
> ecpppre <myfile.html >myfile.ecpp
>
> or add a suitable rule into your build system.
>
> Tommi
Sorry - here is version 2 (tested this time):
#!/usr/bin/sed -f
s_<!--%cpp>_<%cpp>_g
s_</%cpp-->_</%cpp>_g
Tommi
------------------------------------------------------------------------------
Own the Future-Intel(R) 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://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general