James Hancock
2009-12-09 00:17:32 UTC
Hello,
I am a new subscriber to this list. I have used notepad++ before a little,
but I was wondering if it had a way of scanning through badly formatted HTML
and make it in the standard tree view. All of the code is correct It just is
formatted badly. Normally they use a content management system(Which I don`t
even know what) so the computer just spits out ugly code. I`ll post a little
example to show what I mean.
Go from this "
<ul>
<li id="section-link-home">
<a class="selected" href="
http://jesuschrist.lds.org/SonOfGod/eng/">Home</a>
</li>
<li id="section-link-faith">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/faith-in-jesus-christ">Faith in
Jesus Christ</a>
</li>
<li id="section-link-teachings">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/his-life-and-teachings">His Life and
Teachings</a>
</li>
<li id="section-link-testimonies">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/testimonies-of-him">Testimonies of
Him</a>
</li>
<li id="section-link-multimedia">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/multimedia">Multimedia</a>
</li>
</ul>
"
to this
"
<div id="section-links">
<h2 style="background-image:
url(/JesusChrist_files/images/site-title-en.gif); background-repeat:
no-repeat;">
<a>Jesus Christ, The Son of God</a>
</h2>
<ul>
<li id="section-link-home">
<a class="selected" href="
http://jesuschrist.lds.org/SonOfGod/eng/">Home</a>
</li>
<li id="section-link-faith">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/faith-in-jesus-christ">Faith in
Jesus Christ</a>
</li>
<li id="section-link-teachings">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/his-life-and-teachings">His Life and
Teachings</a>
</li>
<li id="section-link-testimonies">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/testimonies-of-him">Testimonies of
Him</a>
</li>
<li id="section-link-multimedia">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/multimedia">Multimedia</a>
</li>
</ul>
</div>
"
Any macros or options that I can run to automatically do this instead of by
hand.
Any help would be greatly appreciated,
James Hancock
I am a new subscriber to this list. I have used notepad++ before a little,
but I was wondering if it had a way of scanning through badly formatted HTML
and make it in the standard tree view. All of the code is correct It just is
formatted badly. Normally they use a content management system(Which I don`t
even know what) so the computer just spits out ugly code. I`ll post a little
example to show what I mean.
Go from this "
<ul>
<li id="section-link-home">
<a class="selected" href="
http://jesuschrist.lds.org/SonOfGod/eng/">Home</a>
</li>
<li id="section-link-faith">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/faith-in-jesus-christ">Faith in
Jesus Christ</a>
</li>
<li id="section-link-teachings">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/his-life-and-teachings">His Life and
Teachings</a>
</li>
<li id="section-link-testimonies">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/testimonies-of-him">Testimonies of
Him</a>
</li>
<li id="section-link-multimedia">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/multimedia">Multimedia</a>
</li>
</ul>
"
to this
"
<div id="section-links">
<h2 style="background-image:
url(/JesusChrist_files/images/site-title-en.gif); background-repeat:
no-repeat;">
<a>Jesus Christ, The Son of God</a>
</h2>
<ul>
<li id="section-link-home">
<a class="selected" href="
http://jesuschrist.lds.org/SonOfGod/eng/">Home</a>
</li>
<li id="section-link-faith">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/faith-in-jesus-christ">Faith in
Jesus Christ</a>
</li>
<li id="section-link-teachings">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/his-life-and-teachings">His Life and
Teachings</a>
</li>
<li id="section-link-testimonies">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/testimonies-of-him">Testimonies of
Him</a>
</li>
<li id="section-link-multimedia">
<a href="
http://jesuschrist.lds.org/SonOfGod/eng/multimedia">Multimedia</a>
</li>
</ul>
</div>
"
Any macros or options that I can run to automatically do this instead of by
hand.
Any help would be greatly appreciated,
James Hancock