escape .c files to html code with bash how?

Todd Zullinger tmz at pobox.com
Mon Oct 18 16:43:10 UTC 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?

Check out highlight.  It can do this nicely.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Play "wheels on the bus" and get the hell out of my sight.
    -- Stewie Griffin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20101018/d02fb990/attachment.bin 


More information about the users mailing list