Really Simple.....
-
I am looking for a text editor for html files.
I write ‘how to use’ camera books for both Amazon Kindle and print versions. I find HTML the most versatile and simple way to achieve what I need since it translates easily to native .mobi and .pdf files for both versions, provided the html code is kept simple.
Up to now I have been using Textpad for hand coding my html. I define a series of headings from h1 to h6 and class variations of them for different sections of the book plus a couple of span tags for detailed formatting. This all works fine but given the necessarily complex nature of the words in the book, having them mixed up with all the html tags makes for a confusing page, colour highlighted tags or not.
All I want to do is to hand code my pages and then hide all the tags so that I can add the content under the headings without distraction. I have tried a few wysiwig html editors but they always spew out acres of unnecessary code with unnecessary div and p tags among others, making them not translate accurately to the Kindle book .mobi and .pdf formats
As an example, I want a choice of views between this:
<h1>Post Focus Processing<h2>
blah blah <span>blah</span> blah blah blah blah blah blah.<h1>Aspect ratio</h1> blah blah blah blah <span>blah</span> blah
And this:
Post Focus Processing
blah blah blah blah blah blah blah blah blah.Aspect ratio
blah blah blah blah blah blahI can live without accurate wysiwig since I already know how my html files will translate. It’s just a matter of lessening the confusion of my work page.
Can Notepad++ do this? Unfortunately, I can’t find a way to do it in my long time used Textpad.
-
A plug-in might be able to do this, but I don’t think there is any built-in way to do it with NPP.
Best idea I can think of to approximate your wish is to create a pair of user-defined languages that have the tags you use as keywords. In one of them you would use a style for the keywords to make them stand out, and in the other you would use a style to make them invisible (foreground and background color the same) or as nearly visible as you like.
Then you would have to change between the 2 views by selecting them from the Language menu.
-
Notepad++ is probably not for me then as I then get on yet another learning curve! Thanks Jim.
-
you said you are using pure html. If this is the case, the Preview HTML plugin maybe the solution.
Install using plugin manager, open it, edit your current doc and you get immediate update how it looks like.Cheers
Claudia