s/w for reformatting xhtml?

S

Sparky

Howdy all;

I'm using NVU 1.0 on a win2k sp4 for very basic web-design (ok, *page*
design). By and large, it's a nifty little proggy. However, as I've
started writing more complex & larger code, one bug has become
intolerable: NVU insists on reformating the markup on save or exit.

That is, I format my code one way. I click "save" and NVU reformats the
code in some really confused way. This has become a deal-breaker, so...

Is there a s/w that will re-reformat the code?

tia,
-Sparky

p.s. a comment on NVU as a project...

NVU, as a project, is stumbling. I like NVU because it is open source,
cross-platform and has tabbed mode-switching. I don't like NVU because
of the aforementioned bug, another bug that actually *modifies* your
code and, the project management.

This last point is critical and an odd one in my experience w/open sauce
projects. I've been using NVU since...(dunno, 0.6?)...and have kept up
on their official communication channel: their forums. Unlike other
projects I've tracked, there doesn't seem to be a great deal of two-way
exchanges.

Examples:
1) I haven't been able to find any published roadmap,
2) There's no tool to research/post/track bugs/requests (ie bugzilla),
3) There's not a strong project member presence in forums
4) Bug threads are being locked, no tracking-type answers given.
 
J

jb

Howdy all;
I'm using NVU 1.0 on a win2k sp4 for very basic web-design (ok, *page*
design). By and large, it's a nifty little proggy. However, as I've
started writing more complex & larger code, one bug has become
intolerable: NVU insists on reformating the markup on save or exit.

That is, I format my code one way. I click "save" and NVU reformats the
code in some really confused way. This has become a deal-breaker, so...

Is there a s/w that will re-reformat the code?

tia,
-Sparky

NVU is great for making code snippets.
 
M

Michael Laplante

Notetab Lite is your answer. Some programs such as PSPad will do it
according to their own set of rules. However, the Notetab family of programs
(freeware through to commercial ware) have their own clip programming
language. This allows you to use the search and replace functions -- which
can use regular expressions as well -- to re-format your pages anyway you
want. I do it all the time with my HTML.

Also, a great program for stripping out undesireable HTML from saved pages,
for inserting clips, etc.

I use Notetab Pro, but Lite will do it as well.

www.notetab.com


M
 
C

charles

Howdy all;

I'm using NVU 1.0 on a win2k sp4 for very basic web-design (ok, *page*
design). By and large, it's a nifty little proggy. However, as I've
started writing more complex & larger code, one bug has become
intolerable: NVU insists on reformating the markup on save or exit.

That is, I format my code one way. I click "save" and NVU reformats the
code in some really confused way. This has become a deal-breaker, so...

Is there a s/w that will re-reformat the code?

tia,
-Sparky

I've started using PSPad (beta build 4.50) recently and it is great.
http://www.pspad.com/

It's been mentioned here elsewhere. Previews, configurable highlighting
and Tidy built in.

If it only had an Emacs interface it would be (maybe) perfect (almost).
 
J

John Pearce

Sparky said:
Howdy all;

I'm using NVU 1.0 on a win2k sp4 for very basic web-design (ok, *page*
design). By and large, it's a nifty little proggy. However, as I've
started writing more complex & larger code, one bug has become
intolerable: NVU insists on reformating the markup on save or exit.

That is, I format my code one way. I click "save" and NVU reformats
the code in some really confused way. This has become a
deal-breaker, so...
Is there a s/w that will re-reformat the code?

tia,
-Sparky

I am not sure if this will solve your problem, but there is an option under
"Tools|Preferences|General" where you can specify to "Retain original source
formatting". This is not the default setting, but is the first thing I set
on NVU.

John Pearce
 
J

John Fitzsimons

S

Sparky

John said:
I am not sure if this will solve your problem, but there is an option
under "Tools|Preferences|General" where you can specify to "Retain
original source formatting". This is not the default setting, but is
the first thing I set on NVU.

John Pearce
Thanks John;

The option you cite is broken and a well-known bug. So well known in
fact that the NVU forum admins have pinned a post saying:

"Due to several similar bug reports about "keep source formatting", new
posts for the same problem will be deleted. "

I haven't been able to find a timeline for patching this or for further
releases for that matter.

-Sparky
 
S

Sparky

John said:
< snip >

The NVU email list appears to have two-way exchanges okay.

Regards, John.

Thanks for the heads-up, John. I'd overlooked the email lists,
depending instead on NVU's forums. Still, the statement stands.
Compared w/other open source projects; NVU's roadmap, timetables, bug
tracking, et al, are not as "openly" available and discussed.

fwiw,
-Sparky
 
S

Sparky

charles said:
I've started using PSPad (beta build 4.50) recently and it is great.
http://www.pspad.com/...<stuff deleted>
If it only had an Emacs interface it would be (maybe) perfect (almost).
Thanks Charles;

Yea, I've just started using PSPad after searching pricelessware(!) and
previous posts. I really like the (re-)formating and html-check
functions. Very cool. Haven't tried the tidy tie-in nor the split
screens but soon.

-Sparky
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top