![]() |
Understanding the div levels in Sigil
I was wondering if there is a way to show the <div> levels in the code view of Sigil? If you have numerous div level in your code due to floats, boxes, etc. is there a way to see where a <div> starts and it </div> ends? Maybe a script or addition for Sigil to enhance the code view so when you set your cursor in a <div> it can highlight (option: color, bold) the ending </div>?
Since I have div's inside div's this would be a great enhancement. Thanks for any feedback |
Divs inside divs gives me the willies. Obey Thoreau in all things digiital: simplify! simplify!
|
Quote:
https://manual.calibre-ebook.com/edi...x-highlighting |
Quote:
Quote:
|
Quote:
Quote:
|
Just run Sigil’s mend and prettify and divs should be matched by indentation
|
Quote:
I don't like using divs in divs either and I think it would help if Sigil had a way to view the levels and also for list levels. My work is creating print books and in the past 5 or so years, I have been creating the epub/mobi versions for them. As more clients are requesting more complex layouts in ebook formats I have been digging in my heals. Thank you for the feedback. |
In Sigil, the "elements" tab of the preview window might also be helpful. It allows one to expand or contract various blocks of code, so you could selectively expand various div elements to see what's what.
HTH Albert |
@RSoldin -- You might consider using the Sigil option "Open With" to open your html files in a 3rd-party text editor. I happen to use Notepad ++ (free, opensource), partly because it does highlight matching tags and does a lot of other configurable semantic code highlighting. I do a lot of editing in NP++, save there, and return to the Sigil app --- those files will have been updated in Sigil, and all I have to do is save the Sigil file.
(I have a vision problem with depth perception that makes the indentations very difficult to track.) Please forgive if this is a bit too elementary for the subject... |
Quote:
|
Appreciate the feedback
I have been looking for ways to go about viewing the structure of my code using some of the tools that you all have pointed out. Thank you.
I was thinking about trying to get NoteBooK ++ to run but have found out the with all the apps I use on a daily bases, it would crowd out my 16 gigs of ram. I may try using Calibre when I get loaded with div's in a book, but it's also a memory hog and modifies the XHTML to much to keep a grip on the Sigil code. I have also been messing with BBEdit to see if it will aid me with these heavy books. I will also get more active with the team that works on the Sigil code. Maybe they can work something out. I'll post back once I get farther into my pursuit. Thanks |
Quote:
BR |
Quote:
Seriously though, NP++ should not be causing memory issues if you have 16 GB...check Task Mgr to see what is actually chunking it up. Quote:
|
| All times are GMT -4. The time now is 10:30 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.