Re: Is there a tool that will format Objective-C tool in HTML?
by "Robin Barooah" <robin.b@[EMAIL PROTECTED]
>
Sep 12, 2006 at 10:13 AM
Sherm Pendley wrote:
> "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.
>
Hmm... I've not played with AppleScript, but now that you mention this
I am thinking about trying to add a script to XCode that will do just
this.
> Did you need fancier formatting (color coding, etc.), or something auto-
> mated so you can process a few thousand code files?
>
Fancy formatting could be a bonus if it produced very clean HTML but
otherwise I'd probably prefer to do without.
I am looking for something automated so I can do this accurately and
often without having to think much about it each time.
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians: http://wv-www.net
> Cocoa programming in Perl: http://camelbones.sourceforge.net