Re: Is there a tool that will format Objective-C tool in HTML?
by Sherm Pendley <sherm@[EMAIL PROTECTED]
>
Sep 12, 2006 at 11:26 AM
"Robin Barooah" <robin.b@[EMAIL PROTECTED]
> writes:
> I have some objective-c source files that I'd like to post on my
> website (http://www.sublime.org).
I have spent some time looking for a
> tool to format the source in HTML/XHTML unsuccessfully. My
> requirements are very basic - I just want:
>
> 1. To escape characters that otherwise won't be taken literally in
> html.
> 2. To convert spaces and tabs to appropriate numbers of ' ' so
> that the code retains its indenting.
If that's all you want, just do a search & replace of "&" with "&" and
"<" with "<", then wrap the code with a <pre>...</pre> element.
Did you need fancier formatting (color coding, etc.), or something auto-
mated so you can process a few thousand code files?
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net