View Single Post
Old 10-07-2011, 06:04 AM   #5
Wyndham
Connoisseur
Wyndham has a complete set of Star Wars action figures.Wyndham has a complete set of Star Wars action figures.Wyndham has a complete set of Star Wars action figures.
 
Wyndham's Avatar
 
Posts: 96
Karma: 250
Join Date: Mar 2011
Location: Cricklewood (London)
Device: iPad Air 2 (iOS 9), iPhone 6 (iOS 9)
Quote:
Originally Posted by citac View Post
Wyndham, a bit off topic, but how do you apply a template to Notepad++? I recently started using the program more often, and didn't know about this option.
Hi citac,

I hope I didn't mislead you, but I used the term "apply template" very loosely and did not mean (for example) as used to apply a template (properly) in Dreamweaver.

I have an HTML file which contains all the header information correctly set out and I then copy and paste this to the (new) file/document.

I usually work on several documents at a time, as Notepadd++ can do this quite easily provided your PC has enough memory (etc).

1) Apply template to each file (copy and paste from example document)
2) Copy text to be removed if no longer needed
e.g. <H1 CLASS="western">
<P CLASS="western" STYLE="margin-bottom: 0.35cm">
<P CLASS="western">
<FONT FACE="Calibri, sans-serif">
<FONT SIZE=3>
etc
3) Select CTRL-H to bring up the Find/Replace dialog, enter text to find and choose replace in all open documents. Check out the drop down arrows on the replace box to quickly find text to replace with.

e.g. <P CLASS="western" STYLE="margin-bottom: 0.35cm"> replaced by <P>

------

This is a slowish task, but can significantly reduce the size of some documents and does result in a clean(er) HTML file which imports nicely into Calibre.

If there is a better way of doing this I'd love to hear about it.


Hope this was helpful
Wyndham is offline   Reply With Quote