Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-07-2020, 11:01 AM   #1
susanna3
Junior Member
susanna3 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2020
Device: sigil
Question Can I disable word wrap in code view?

Every single word can be seen in the code view. But sometime I just want to edit the code in the beginning of all paragraphs so I want to disable word wrap in order to focus on the beginning of the paragraph only no matter how long the paragraphs.

Is there a key or setting that can toggle between able and disable word wrap in the code view?
susanna3 is offline   Reply With Quote
Old 06-07-2020, 06:15 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Not that I know of.

You could use the Open With feature to open the xhtml file in another editor - in my case that would Notepad++.

BR
BetterRed is offline   Reply With Quote
Old 06-08-2020, 09:35 AM   #3
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
After running 'Mend and Prettify code' paragraph breaks are shown very clearly in code view. Isn't this sufficient?

Click image for larger version

Name:	Annotation 2020-06-08 143125.png
Views:	205
Size:	21.5 KB
ID:	179779
exaltedwombat is offline   Reply With Quote
Old 06-08-2020, 11:48 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm assuming that they want to be able to see the beginnings of as many paragraphs as possible (without vertically scrolling).

Quote:
Originally Posted by susanna3 View Post
But sometime I just want to edit the code in the beginning of all paragraphs so I want to disable word wrap in order to focus on the beginning of the paragraph only no matter how long the paragraphs.
You can only see the beginning of three paragraphs in your image. They just want to see one-line paragraphs with the vast majority of that one line unseen--off-screen to the right.

But it's all moot since what they want isn't possible (unless they use an external editor as BR mentioned).

Last edited by DiapDealer; 06-08-2020 at 11:51 AM.
DiapDealer is online now   Reply With Quote
Old 06-08-2020, 11:25 PM   #5
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Well, you can close or minimise the "preview" and browser panes and reduce the font size to get more wrapped code paragraphs displayed. Or buy a wider monitor...
AlanHK is offline   Reply With Quote
Old 06-10-2020, 02:11 AM   #6
JJ Johnson
Connoisseur
JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.
 
Posts: 70
Karma: 2119794
Join Date: Feb 2020
Location: Colorado
Device: Kobo Libra H20
I just downloaded and installed Sigil. Opened an epub file and wanted to modify some xhtml. The very first thing I looked for was a way to turn off word wrap.
JJ Johnson is offline   Reply With Quote
Old 06-10-2020, 05:39 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Weird.
DiapDealer is online now   Reply With Quote
Old 06-10-2020, 08:15 AM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
So use Sigil openWith Preferences to set a different xhtml editor that does what you want, as not seeing half of each line is not something useful to most people who actually care about the paragraph text.
KevinH is offline   Reply With Quote
Old 06-10-2020, 09:03 AM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Just of curiosity, what other code editors (not text editors) have an option to turn off word wrap?
DiapDealer is online now   Reply With Quote
Old 06-10-2020, 10:06 AM   #10
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 809
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by DiapDealer View Post
Just of curiosity, what other code editors (not text editors) have an option to turn off word wrap?
Visual Studio Code
BeckyEbook is offline   Reply With Quote
Old 06-10-2020, 10:45 AM   #11
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by AlanHK View Post
Well, you can close or minimise the "preview" and browser panes and reduce the font size to get more wrapped code paragraphs displayed. Or buy a wider monitor...
Imagine the size of the monitor Proust would have used!
Notjohn is offline   Reply With Quote
Old 06-10-2020, 11:10 AM   #12
najgori
Klak
najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'
 
najgori's Avatar
 
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
Quote:
Originally Posted by DiapDealer View Post
Just of curiosity, what other code editors (not text editors) have an option to turn off word wrap?
Any editor can be code editor if you write code in it. (fake Mitch Hedberg quotes)
najgori is offline   Reply With Quote
Old 06-10-2020, 06:32 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I inherited a bunch of programmers 30 odd years ago who used the Multimate word processor as their editor. Took a while to wean the diehards away from it, and onto the Brief programmers editor - which survives as a Visual Studio plugin.
BetterRed is offline   Reply With Quote
Old 06-10-2020, 09:20 PM   #14
JJ Johnson
Connoisseur
JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.
 
Posts: 70
Karma: 2119794
Join Date: Feb 2020
Location: Colorado
Device: Kobo Libra H20
PyCharm is a code editor I've been using lately that has a word wrap toggle. Called "soft-wrap", it's disabled by default, which is actually what I'd expect in a code editor.

No question about it, if you want to edit the text of a book, you'd typically want word wrap enabled so that all text is visible. But not so much when editing the markup, IMO.
JJ Johnson is offline   Reply With Quote
Old 06-10-2020, 09:41 PM   #15
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JJ Johnson View Post
No question about it, if you want to edit the text of a book, you'd typically want word wrap enabled so that all text is visible. But not so much when editing the markup, IMO.
I honestly can't think of any situation where turning off word wrap would be advantageous to me when editing markup. I never want to NOT see all the code.

I realize that everyone's mileage varies, but also keep in mind that in all the years I've been associated with Sigil, you guys are the first two people to ask how to turn off word wrap in Code View (that I can recall).
DiapDealer is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable Word Wrap in the Editor? Entry20 Editor 4 10-02-2018 12:03 PM
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
Sheet To Go -- Word Wrap in Cells? kenjennings enTourage Archive 0 05-06-2010 10:34 AM
Word wrap in the forum [closed] JSWolf Lounge 51 11-11-2007 10:22 PM


All times are GMT -4. The time now is 01:17 PM.


MobileRead.com is a privately owned, operated and funded community.