[CentOS] escape .c files to html code with bash how?

m.roth at 5-cent.us m.roth at 5-cent.us
Mon Oct 18 12:46:19 EDT 2010


Jozsef Vadkan wrote:
> i need to encode .c files to html, like on this website:
>
> http://centricle.com/tools/html-entities/
>
> i tried to write a bash script for it:
>
> http://pastebin.com/raw.php?i=mZKAw4c5
>
> but it's not working very well :D
>
> does anyone has a script, that does this?

I don't understand what you want to do. I mean, won't
<pre>
code
</pre>

do what you want? That *is* what I belive it was intended for....

        mark



More information about the CentOS mailing list