Sunday, June 2, 2013

Re: How are you editing HTML?

On 2013-06-02 21:17, Steve Litt wrote:
> On Sun, 2 Jun 2013 19:12:26 -0500
> Tim Chase<vim@tim.thechases.com> wrote:
> > On 2013-06-02 19:48, Steve Litt wrote:
> > > For one thing, as I type my HTML, it goes into the file as a
> > > jumble, with inconsistent indentation and no blank line before
> > > <h1>, <h2> etc headers. Tables aren't sectioned off with
> > > whitespace.
> >
> > This sounds a bit like the old joke
> >
> > Patient: Doctor, it hurts when I do this
> > Doctor: Well, don't do that
> >
> > I don't want to give you too much grief, as for your sake it
> > would be nice to have your editor meet you where you are. That
> > said, I find it much easier to create consistent documents from
> > the start.
>
> What you wrote above went totally over my head -- I don't
> understand it at all. Could you please elaborate?

The point of the joke is that, if it hurts to do something, then
don't do it (I didn't claim the joke was *funny*, just *old* :-)

In your case, it sounds like your pain-point is inconsistent
formatting, so my suggestion in the context of that joke would have
been "work to format consistently."

I know not everybody is as obsessive as I am about things like
formatting documents, so using a tool like "tidy" can give you a good
baseline from which to start being consistent--and a good tool for
bringing inconsistencies back into a standard format.

So feel free to ignore my jesting and just use "tidy" if that works
for you.

-tim






--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: