MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Understanding the div levels in Sigil (https://www.mobileread.com/forums/showthread.php?t=314035)

RSoldin 01-03-2019 10:09 AM

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

Notjohn 01-03-2019 01:55 PM

Divs inside divs gives me the willies. Obey Thoreau in all things digiital: simplify! simplify!

jbacelar 01-03-2019 02:31 PM

Quote:

Originally Posted by RSoldin (Post 3794364)
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?

Yes, in the Calibre Editor:
https://manual.calibre-ebook.com/edi...x-highlighting

DiapDealer 01-03-2019 03:58 PM

Quote:

Originally Posted by jbacelar (Post 3794478)

Please stick to the questions asked.

Quote:

Originally Posted by RSoldin (Post 3794364)
I was wondering if there is a way to show the <div> levels in the code view of Sigil?


jbacelar 01-03-2019 06:07 PM

Quote:

Originally Posted by DiapDealer (Post 3794497)
Please stick to the questions asked.

OK.

Quote:

I was wondering if there is a way to show the <div> levels in the code view of Sigil?
Currently in Sigil no.

KevinH 01-03-2019 07:10 PM

Just run Sigil’s mend and prettify and divs should be matched by indentation

RSoldin 01-04-2019 12:24 AM

Quote:

Originally Posted by KevinH (Post 3794581)
Just run Sigil’s mend and prettify and divs should be matched by indentation

Yes, that is a part of using Sigil. Since I couldn't find any scripts or Plug-ins searching, I was thinking that my last resort would be to ask on this board and see if anyone knew a trick or had something that could help in viewing div levels.

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.

st_albert 01-04-2019 12:35 PM

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

GrannyGrump 01-07-2019 01:16 AM

@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...

Notjohn 01-07-2019 11:50 AM

Quote:

Originally Posted by GrannyGrump (Post 3795964)
@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.

Yes, Notepad++ is indeed visually helpful.

RSoldin 01-11-2019 12:22 AM

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

BetterRed 01-11-2019 12:47 AM

Quote:

Originally Posted by RSoldin (Post 3797684)
I will also get more active with the team that works on the Sigil code. Maybe they can work something out.

FYI - the team that works on Sigil comprises KevinH, DiapDealer, who have responded above.

BR

Turtle91 01-11-2019 04:29 AM

Quote:

Originally Posted by RSoldin (Post 3797684)
...
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.

Just a suggestion...close the apps that you are not actively using... it saves memory and it's easy enough to run the program when you need to use them again. 16 gig RAM should be plenty for all but the highest end cad programs...
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:

Originally Posted by RSoldin (Post 3797684)
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...

Don't confuse Calibre "conversions" with the program "Calibre Editor". Calibre Editor, like Sigil, only makes changes to the html that you specify.


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.